Author: j16sdiz Date: 2008-10-30 08:36:16 +0000 (Thu, 30 Oct 2008) New Revision: 23218
Modified: trunk/freenet/src/freenet/node/GlobalProbe.java Log: no warning Modified: trunk/freenet/src/freenet/node/GlobalProbe.java =================================================================== --- trunk/freenet/src/freenet/node/GlobalProbe.java 2008-10-30 08:35:55 UTC (rev 23217) +++ trunk/freenet/src/freenet/node/GlobalProbe.java 2008-10-30 08:36:16 UTC (rev 23218) @@ -3,9 +3,10 @@ * http://www.gnu.org/ for further details of the GPL. */ package freenet.node; -import freenet.support.Logger; import java.util.Arrays; +import freenet.support.Logger; + public class GlobalProbe implements Runnable { double lastLocation = 0.0; @@ -98,7 +99,7 @@ } private void output(double loc, int hops) { - double estimatedNodes = ((double) (ctr+1)) / loc; + double estimatedNodes = (ctr + 1.0) / loc; Logger.error(this, "LOCATION "+ctr+": " + loc+" - estimated nodes: "+estimatedNodes+" ("+hops+" hops)"); System.err.println("LOCATION "+ctr+": " + loc+" - estimated nodes: "+estimatedNodes+" ("+hops+" hops)"); }
