Author: ljn1981
Date: 2006-09-10 18:12:36 +0000 (Sun, 10 Sep 2006)
New Revision: 10450

Modified:
   trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
   trunk/freenet/src/freenet/node/LocationManager.java
Log:
Doh! And a comment.


Modified: trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java       
2006-09-10 18:00:40 UTC (rev 10449)
+++ trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java       
2006-09-10 18:12:36 UTC (rev 10450)
@@ -143,8 +143,9 @@
                        int bwlimitDelayTime = (int) node.getBwlimitDelayTime();
                        int nodeAveragePingTime = (int) 
node.getNodeAveragePingTime();
                        int networkSizeEstimateSession = 
node.getNetworkSizeEstimate(-1);
+                       int networkSizeEstimateRecent = 0;
                        if(nodeUptimeSeconds > (48*60*60)) {  // 48 hours
-                               int networkSizeEstimateRecent = 
node.getNetworkSizeEstimate(now - (48*60*60*1000));  // 48 hours
+                               networkSizeEstimateRecent = 
node.getNetworkSizeEstimate(now - (48*60*60*1000));  // 48 hours
                        }
                        DecimalFormat fix4 = new DecimalFormat("0.0000");
                        double missRoutingDistance =  
node.missRoutingDistance.currentValue();

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2006-09-10 18:00:40 UTC 
(rev 10449)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2006-09-10 18:12:36 UTC 
(rev 10450)
@@ -982,6 +982,7 @@
                        size = knownLocs.size();
                }
                else if (timestamp > -1) {
+                       //TODO optimize some more if it is to be called a lot.
                        Date threshold = new Date(timestamp);
                        Date locationTime;
                        int numberOfLocationsInPeriod = 0;


Reply via email to