Author: toad
Date: 2008-02-12 13:26:59 +0000 (Tue, 12 Feb 2008)
New Revision: 17811

Modified:
   trunk/freenet/src/freenet/node/simulator/RealNodeTest.java
Log:
doh

Modified: trunk/freenet/src/freenet/node/simulator/RealNodeTest.java
===================================================================
--- trunk/freenet/src/freenet/node/simulator/RealNodeTest.java  2008-02-12 
13:25:39 UTC (rev 17810)
+++ trunk/freenet/src/freenet/node/simulator/RealNodeTest.java  2008-02-12 
13:26:59 UTC (rev 17811)
@@ -117,6 +117,7 @@
                                totalConnections += countConnected;
                                totalBackedOff += countBackedOff;
                                double pingTime = 
nodes[i].nodeStats.getNodeAveragePingTime();
+                               totalPingTime += pingTime;
                                if(pingTime > maxPingTime) maxPingTime = 
pingTime;
                                if(pingTime < minPingTime) minPingTime = 
pingTime;
                                if(countConnected == countTotal) {
@@ -137,7 +138,7 @@
                                System.err.println();
                                return;
                        } else {
-                               System.err.println("Waiting for nodes to be 
fully connected: "+countFullyConnected+" / "+nodes.length+" 
("+totalConnections+" / "+totalPeers+" connections total) - backed off 
"+totalBackedOff);
+                               System.err.println("Waiting for nodes to be 
fully connected: "+countFullyConnected+" / "+nodes.length+" 
("+totalConnections+" / "+totalPeers+" connections total) - backed off 
"+totalBackedOff+" ping min/avg/max 
"+minPingTime+"/"+(totalPingTime/nodes.length)+"/"+maxPingTime);
                                Logger.normal(RealNodeTest.class, "Waiting for 
nodes to be fully connected: "+countFullyConnected+" / "+nodes.length+" 
("+totalConnections+" / "+totalPeers+" connections total) - backed off 
"+totalBackedOff+" ping min/avg/max 
"+minPingTime+"/"+(totalPingTime/nodes.length)+"/"+maxPingTime);
                                Thread.sleep(1000);
                        }


Reply via email to