Author: toad
Date: 2009-02-13 21:47:35 +0000 (Fri, 13 Feb 2009)
New Revision: 25631

Modified:
   
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
Log:
No need for -1 here


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
   2009-02-13 21:31:10 UTC (rev 25630)
+++ 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
   2009-02-13 21:47:35 UTC (rev 25631)
@@ -374,7 +374,7 @@
                                return;
                        }
                        size -= size % blockSize;
-                       long blocks = (size / blockSize) - 1;
+                       long blocks = size / blockSize;
                        if(blocks <= 32) {
                                if(logMINOR) Logger.minor(this, "Not shrinking, 
blob file not larger than a megabyte");
                                lastCheckedEnd = now;

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to