Skip to content

Commit

Permalink
chore: fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: rustco <ruster@111.com>
  • Loading branch information
rustco authored and djc committed Jun 20, 2024
1 parent 24eaf46 commit 022fda7
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 @@ -554,7 +554,7 @@ impl AtomicPosition {
// We now calculate `new`, the number of ms, in ns, since we last returned `true`,
// and `remainder`, which represents a number of ns less than 1ms which we cannot
// convert into capacity now, so we're saving it for later. We do this by
// substracting this from `elapsed` before storing it into `self.prev`.
// subtracting this from `elapsed` before storing it into `self.prev`.
let (new, remainder) = ((diff / INTERVAL), (diff % INTERVAL));
// We add `new` to `capacity`, subtract one for returning `true` from here,
// then make sure it does not exceed a maximum of `MAX_BURST`.
Expand Down

0 comments on commit 022fda7

Please sign in to comment.