Author: xor
Date: 2008-10-24 12:06:59 +0000 (Fri, 24 Oct 2008)
New Revision: 23069

Modified:
   trunk/freenet/src/freenet/node/UptimeEstimator.java
Log:
Beautification.

Modified: trunk/freenet/src/freenet/node/UptimeEstimator.java
===================================================================
--- trunk/freenet/src/freenet/node/UptimeEstimator.java 2008-10-24 12:05:51 UTC 
(rev 23068)
+++ trunk/freenet/src/freenet/node/UptimeEstimator.java 2008-10-24 12:06:59 UTC 
(rev 23069)
@@ -101,8 +101,7 @@
        public void run() {
                synchronized(this) {
                        wasOnline[slot] = true;
-                       slot++;
-                       if(slot == wasOnline.length) slot = 0;
+                       slot = (slot + 1) % wasOnline.length;
                }
                long now = System.currentTimeMillis();
                if(logFile.length() > wasOnline.length*4L) {


Reply via email to