Author: toad
Date: 2008-02-16 13:53:07 +0000 (Sat, 16 Feb 2008)
New Revision: 17994
Modified:
trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
Log:
Another variable mixup
Modified: trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
===================================================================
--- trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
2008-02-16 13:49:41 UTC (rev 17993)
+++ trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
2008-02-16 13:53:07 UTC (rev 17994)
@@ -29,7 +29,7 @@
int endPtr;
static boolean logMINOR;
- static final int MIN_SIZE = 4;
+ static final int MIN_SIZE = 2;
final long cooldownTime;
@@ -71,7 +71,7 @@
if(logMINOR) Logger.minor(this, "endPtr > startPtr");
if(endPtr == keys.length-1) {
// Last key
- if(ptr == 0) {
+ if(startPtr == 0) {
// No room
expandQueue();
add(key);