mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-28 07:53:56 +00:00
Clock: Fix duplicate notification of clock shift listeners
This commit is contained in:
1 parent
dd400bb14b
commit
ffcd2d4517
1 file changed
+1
-1
@@ -285,7 +285,7 @@ public class RouterClock extends Clock {
|
||||
long nowNanos = System.nanoTime();
|
||||
// try to prevent dups, not guaranteed
|
||||
// nanoTime() isn't guaranteed to be monotonic either :(
|
||||
if (nowNanos < _lastShiftNanos + MASSIVE_SHIFT_FORWARD)
|
||||
if (nowNanos < _lastShiftNanos + (MASSIVE_SHIFT_FORWARD * 1000*1000L))
|
||||
return;
|
||||
_lastShiftNanos = nowNanos;
|
||||
|
||||
|
||||
Reference in new issue
Block a user