Author: toad
Date: 2007-03-15 19:41:49 +0000 (Thu, 15 Mar 2007)
New Revision: 12131

Modified:
   trunk/freenet/src/freenet/node/LocationManager.java
   trunk/freenet/src/freenet/support/TimeSortedHashtable.java
Log:
Minor sync fix (not likely to have any practical effect on current code)

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2007-03-15 19:28:36 UTC 
(rev 12130)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2007-03-15 19:41:49 UTC 
(rev 12131)
@@ -1048,9 +1048,7 @@

     //Return the estimated network size based on locations seen after 
timestamp or for the whole session if -1
     public int getNetworkSizeEstimate(long timestamp) {
-       synchronized (knownLocs) {
-               return knownLocs.countValuesAfter(timestamp);
-       }
+               return knownLocs.countValuesAfter(timestamp);
        }

     /**

Modified: trunk/freenet/src/freenet/support/TimeSortedHashtable.java
===================================================================
--- trunk/freenet/src/freenet/support/TimeSortedHashtable.java  2007-03-15 
19:28:36 UTC (rev 12130)
+++ trunk/freenet/src/freenet/support/TimeSortedHashtable.java  2007-03-15 
19:41:49 UTC (rev 12131)
@@ -166,7 +166,7 @@
        return values;
     }

-       public int countValuesAfter(long t) {
+       public synchronized int countValuesAfter(long t) {
        Long time = new Long(t);

        Set s = elements.tailSet(time);


Reply via email to