Author: toad
Date: 2008-01-25 19:29:32 +0000 (Fri, 25 Jan 2008)
New Revision: 17297

Modified:
   trunk/freenet/src/freenet/node/NodeStats.java
Log:
Revert 17235 for now.
Robert: This may be useful, I just want it out of the way while I release 1104. 
One 1104 is out, put it back in and we can discuss whether this is useful or 
not and whether to use both the local and global pings.

Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java       2008-01-25 19:23:39 UTC 
(rev 17296)
+++ trunk/freenet/src/freenet/node/NodeStats.java       2008-01-25 19:29:32 UTC 
(rev 17297)
@@ -406,10 +406,7 @@
                // If no recent reports, no packets have been sent; correct the 
average downwards.
                long now = System.currentTimeMillis();
                double pingTime;
-               if (source==null)
-                       pingTime = nodePinger.averagePingTime();
-               else
-                       pingTime = source.averagePingTime();
+               pingTime = nodePinger.averagePingTime();
                synchronized(this) {
                        // Round trip time
                        if(pingTime > MAX_PING_TIME) {


Reply via email to