Skip to content

Commit

Permalink
Fix bug where time over the maximum would be reported as 1ms in quick…
Browse files Browse the repository at this point in the history
… mode. (#659)
  • Loading branch information
KonradHoeffner committed Mar 11, 2023
1 parent 2942aee commit 86dcd7d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/routine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ pub(crate) trait Routine<M: Measurement, T: ?Sized> {

// Early exit for extremely long running benchmarks:
if time_start.elapsed() > maximum_bench_duration {
let t_prev = 1_000_000f64;
let iters = vec![n as f64, n as f64].into_boxed_slice();
let elapsed = vec![t_prev, t_prev].into_boxed_slice();
return (ActualSamplingMode::Flat, iters, elapsed);
Expand Down

0 comments on commit 86dcd7d

Please sign in to comment.