Changeset ffcd2d4 for router


Ignore:
Timestamp:
Dec 22, 2016 3:16:51 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f902a63
Parents:
dd400bb
Message:

Clock: Fix duplicate notification of clock shift listeners

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/RouterClock.java

    rdd400bb rffcd2d4  
    286286        // try to prevent dups, not guaranteed
    287287        // nanoTime() isn't guaranteed to be monotonic either :(
    288         if (nowNanos < _lastShiftNanos + MASSIVE_SHIFT_FORWARD)
     288        if (nowNanos < _lastShiftNanos + (MASSIVE_SHIFT_FORWARD * 1000*1000L))
    289289            return;
    290290        _lastShiftNanos = nowNanos;
Note: See TracChangeset for help on using the changeset viewer.