Author: toad
Date: 2008-04-14 15:52:44 +0000 (Mon, 14 Apr 2008)
New Revision: 19324

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
Ignore nodes with less than 40% uptime when calculating whether we are a sink.



Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2008-04-14 15:51:36 UTC (rev 
19323)
+++ trunk/freenet/src/freenet/node/Node.java    2008-04-14 15:52:44 UTC (rev 
19324)
@@ -475,7 +475,7 @@
         * to the datastore only if it's from an insert, and we are a sink, but 
when calculating whether
         * we are a sink we ignore nodes which have less uptime (percentage) 
than this parameter.
         */
-       private static final int MIN_UPTIME_STORE_KEY = 0;
+       private static final int MIN_UPTIME_STORE_KEY = 40;

        /**
         * Read all storable settings (identity etc) from the node file.


Reply via email to