* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-10-24 12:07:00]:
> 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) {
> This code is not equivalent to the old behaviour; Are you sure it doesn't break things?
signature.asc
Description: Digital signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
