Author: nextgens
Date: 2008-08-13 13:24:06 +0000 (Wed, 13 Aug 2008)
New Revision: 21802
Modified:
trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
don't use "lower than" but "lower than or equal to"
Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-13
13:21:16 UTC (rev 21801)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-13
13:24:06 UTC (rev 21802)
@@ -114,7 +114,7 @@
boolean isARAMBucket = false;
synchronized(this) {
- if((size > 0) && (size < maxRAMBucketSize) &&
(bytesInUse < maxRamUsed)) {
+ if((size > 0) && (size <= maxRAMBucketSize) &&
(bytesInUse <= maxRamUsed)) {
bytesInUse += size;
isARAMBucket = true;
}