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

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

fix clock.skew rates

parent c921ecca
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ public class Clock implements Timestamper.UpdateListener { ...@@ -97,7 +97,7 @@ public class Clock implements Timestamper.UpdateListener {
getLog().info("Updating clock offset to " + offsetMs + "ms from " + _offset + "ms"); getLog().info("Updating clock offset to " + offsetMs + "ms from " + _offset + "ms");
if (!_statCreated) { if (!_statCreated) {
_context.statManager().createRequiredRateStat("clock.skew", "Clock step adjustment (ms)", "Clock", new long[] { 10*60*1000, 3*60*60*1000, 24*60*60*60 }); _context.statManager().createRequiredRateStat("clock.skew", "Clock step adjustment (ms)", "Clock", new long[] { 10*60*1000, 3*60*60*1000, 24*60*60*1000 });
_statCreated = true; _statCreated = true;
} }
_context.statManager().addRateData("clock.skew", delta, 0); _context.statManager().addRateData("clock.skew", delta, 0);
......
...@@ -161,7 +161,7 @@ public class RouterClock extends Clock { ...@@ -161,7 +161,7 @@ public class RouterClock extends Clock {
getLog().info("Updating target clock offset to " + offsetMs + "ms from " + _offset + "ms, Stratum " + stratum); getLog().info("Updating target clock offset to " + offsetMs + "ms from " + _offset + "ms, Stratum " + stratum);
if (!_statCreated) { if (!_statCreated) {
_context.statManager().createRequiredRateStat("clock.skew", "Clock step adjustment (ms)", "Clock", new long[] { 10*60*1000, 3*60*60*1000, 24*60*60*60 }); _context.statManager().createRequiredRateStat("clock.skew", "Clock step adjustment (ms)", "Clock", new long[] { 10*60*1000, 3*60*60*1000, 24*60*60*1000 });
_statCreated = true; _statCreated = true;
} }
_context.statManager().addRateData("clock.skew", delta); _context.statManager().addRateData("clock.skew", delta);
......
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