Calculate median only on a subset of pings.