author | Fabian Huch <huch@in.tum.de> |
Fri, 24 Nov 2023 17:24:22 +0100 | |
changeset 79039 | 322bcfce2b37 |
parent 79038 | cd7c1acc9cf2 |
child 79040 | 7bb8dba028ce |
--- a/src/Pure/Tools/build_schedule.scala Fri Nov 24 17:06:32 2023 +0100 +++ b/src/Pure/Tools/build_schedule.scala Fri Nov 24 17:24:22 2023 +0100 @@ -203,7 +203,7 @@ } object Timing_Data { - def median_time(obs: List[Time]): Time = obs.sortBy(_.ms).drop(obs.length / 2).head + def median_time(obs: List[Time]): Time = obs.sortBy(_.ms).apply(obs.length / 2) def mean_time(obs: Iterable[Time]): Time = Time.ms(obs.map(_.ms).sum / obs.size) private def dummy_entries(host: Host, host_factor: Double) =