Issue #5783 - start _rateCheckTimeStamp at current time
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
ffe3aa4459
commit
8a940fc181
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue