Author: toad
Date: 2006-10-28 16:05:11 +0000 (Sat, 28 Oct 2006)
New Revision: 10726
Modified:
trunk/freenet/src/freenet/node/GlobalProbe.java
Log:
Show estimated network size.
Modified: trunk/freenet/src/freenet/node/GlobalProbe.java
===================================================================
--- trunk/freenet/src/freenet/node/GlobalProbe.java 2006-10-28 15:22:55 UTC
(rev 10725)
+++ trunk/freenet/src/freenet/node/GlobalProbe.java 2006-10-28 16:05:11 UTC
(rev 10726)
@@ -81,8 +81,9 @@
}
private void output(double loc) {
- Logger.error(this, "LOCATION "+ctr+": " + loc);
- System.out.println("LOCATION "+ctr+": " + loc);
+ double estimatedNodes = ((double) (ctr+1)) / loc;
+ Logger.error(this, "LOCATION "+ctr+": " + loc+" - estimated
nodes: "+estimatedNodes);
+ System.out.println("LOCATION "+ctr+": " + loc+" - estimated
nodes: "+estimatedNodes);
}
private void error(String string) {