I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 2a2587b1 authored by zzz's avatar zzz
Browse files

fix logic bug

parent 489fdd5e
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@ public class RouterClock extends Clock {
// a previous step adjustment.
// This allows NTP to trump a peer offset after a soft restart
if (_alreadyChanged &&
(stratum >= _lastStratum || _startedOn - System.currentTimeMillis() > 60*1000)) {
(stratum >= _lastStratum || System.currentTimeMillis() - _startedOn > 60*1000)) {
// Update the target offset, slewing will take care of the rest
if (delta > 15*1000)
getLog().logAlways(Log.WARN, "Warning - Updating target clock offset to " + offsetMs + "ms from " + _offset + "ms, Stratum " + stratum);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment