Skip to content

Commit

Permalink
Issue #5783 - start _rateCheckTimeStamp at current time
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Dec 10, 2020
1 parent ffe3aa4 commit 8a940fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class RateCounter
{
private final LongAdder _total = new LongAdder();
private final LongAdder _totalSinceRateCheck = new LongAdder();
private final AtomicLong _rateCheckTimeStamp = new AtomicLong();
private final AtomicLong _rateCheckTimeStamp = new AtomicLong(System.nanoTime());

public long sum()
{
Expand Down

0 comments on commit 8a940fc

Please sign in to comment.