Author: toad
Date: 2008-03-24 16:43:10 +0000 (Mon, 24 Mar 2008)
New Revision: 18742
Modified:
trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
Doh - MAX_EXCLUDED = 10 not 0!
Modified: trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
2008-03-24 16:41:52 UTC (rev 18741)
+++ trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
2008-03-24 16:43:10 UTC (rev 18742)
@@ -68,7 +68,7 @@
boolean logMINOR = Logger.shouldLog(Logger.MINOR, this);
/** Count of arrays that have items but didn't return anything
because of exclusions */
int excluded = 0;
- final int MAX_EXCLUDED = 0;
+ final int MAX_EXCLUDED = 10;
while(true) {
if(grabArrays.length == 0) return null;
int x = rand.nextInt(grabArrays.length);