mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use example_runtime instead of total runtime
This fixes the issue where < 10 examples in profile showed less than 100% total time.
This commit is contained in:
parent
72aa72781a
commit
34b0399654
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ module Spectator
|
||||||
results = report.compact_map(&.as?(FinishedResult))
|
results = report.compact_map(&.as?(FinishedResult))
|
||||||
sorted_results = results.sort_by(&.elapsed)
|
sorted_results = results.sort_by(&.elapsed)
|
||||||
slowest = sorted_results.last(size).reverse
|
slowest = sorted_results.last(size).reverse
|
||||||
self.new(slowest, report.runtime)
|
self.new(slowest, report.example_runtime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue