Author: robert
Date: 2007-12-10 22:17:11 +0000 (Mon, 10 Dec 2007)
New Revision: 16463

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
off-by-one error (from r16040)


Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2007-12-10 22:08:57 UTC 
(rev 16462)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2007-12-10 22:17:11 UTC 
(rev 16463)
@@ -3171,7 +3171,7 @@
                        short notFoundCount = 0;
                        short consecutiveNotFound = 0;
                        short longestConsecutiveNotFound = 0;
-                       for(short i = (short) times.length; i >= 0; i--) {
+                       for(short i = (short) times.length-1; i >= 0; i--) {
                                long time = times[i];
                                if(time > otime) {
                                        Logger.error(this, "Inconsistent time 
order: [" + i + "]=" + time + " but [" + (i + 1) + "] is " + otime);


Reply via email to