* xor at freenetproject.org <xor at freenetproject.org> [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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081025/4e273a02/attachment.pgp>

Reply via email to