Skip to content

Commit

Permalink
Update Estimator::prev in record()
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Feb 27, 2022
1 parent b9d4714 commit 71e7eaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state.rs
Expand Up @@ -345,6 +345,8 @@ impl Estimator {
if !self.full && self.pos == 0 {
self.full = true;
}

self.prev = (value, current_time);
}

pub(crate) fn reset(&mut self, start: u64, now: Instant) {
Expand Down

0 comments on commit 71e7eaa

Please sign in to comment.