Clock: Fix duplicate notification of clock shift listeners

This commit is contained in:
zzz
2016-12-22 15:16:51 +00:00
parent dd400bb14b
commit ffcd2d4517

View File

@ -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;