Skip to content

Commit

Permalink
allow reset of ETA state without returning estimator to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
afontenot committed May 7, 2023
1 parent b06aa72 commit bcb4245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ impl Estimator {
let now = Instant::now();
self.smoothed_steps_per_sec = 0.0;
self.double_smoothed_steps_per_sec = 0.0;
self.prev = (0, now);
self.prev = (self.prev.0, now);
self.start = now;
}

Expand Down

0 comments on commit bcb4245

Please sign in to comment.