Issue #5783 - start _rateCheckTimeStamp at current time

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-12-10 22:22:31 +11:00
parent ffe3aa4459
commit 8a940fc181
1 changed files with 1 additions and 1 deletions

View File

@ -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()
{