Author: toad
Date: 2008-02-05 23:38:42 +0000 (Tue, 05 Feb 2008)
New Revision: 17570

Modified:
   trunk/freenet/src/freenet/node/FailureTable.java
Log:
DOH! isEmpty() should call isExpired(now), and it was doing the comparison 
wrong anyway.
This probably explains why FNPGetOffered isn't being used.

Modified: trunk/freenet/src/freenet/node/FailureTable.java
===================================================================
--- trunk/freenet/src/freenet/node/FailureTable.java    2008-02-05 23:35:59 UTC 
(rev 17569)
+++ trunk/freenet/src/freenet/node/FailureTable.java    2008-02-05 23:38:42 UTC 
(rev 17570)
@@ -165,7 +165,7 @@

                public synchronized boolean isEmpty(long now) {
                        for(int i=0;i<offers.length;i++) {
-                               if(offers[i].offeredTime > now) return false;
+                               if(!offers[i].isExpired(now)) return false;
                        }
                        return true;
                }


Reply via email to