Author: nextgens
Date: 2008-08-25 21:35:19 +0000 (Mon, 25 Aug 2008)
New Revision: 22152

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
doh

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
21:33:46 UTC (rev 22151)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
21:35:19 UTC (rev 22152)
@@ -129,7 +129,7 @@
                                        if(futureSize > maxRAMBucketSize * 
RAMBUCKET_CONVERSION_FACTOR) {
                                                isOversized = true;
                                                shouldMigrate = true;
-                                       } else if (futureSize + currentSize > 
maxRamUsed)
+                                       } else if (futureSize + bytesInUse > 
maxRamUsed)
                                                shouldMigrate = true;

                                        if(shouldMigrate) {


Reply via email to