Author: nextgens
Date: 2007-03-30 09:10:04 +0000 (Fri, 30 Mar 2007)
New Revision: 12446
Modified:
trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
Log:
do the right cast at the right place!
Modified: trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-03-30
01:09:39 UTC (rev 12445)
+++ trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-03-30
09:10:04 UTC (rev 12446)
@@ -496,7 +496,7 @@
if(atime.count() < chkDB.count())
throw new DatabaseException("Needs
repopulation");
} catch (DatabaseException e) {
-
WrapperManager.signalStarting((int)(Math.max(Integer.MAX_VALUE, 5*60*1000 +
chkDB.count() * 100)));
+
WrapperManager.signalStarting(Math.max(Integer.MAX_VALUE, (int)(5*60*1000 +
chkDB.count() * 100)));
if(atime != null) atime.close();
environment.truncateDatabase(null,
prefix+"CHK_accessTime", false);
System.err.println("Reconstructing access times
index...");