Update of /cvsroot/freenet/freenet/src/freenet/node/rt
In directory sc8-pr-cvs1:/tmp/cvs-serv23362/src/freenet/node/rt
Modified Files:
StandardNodeEstimator.java
Log Message:
6313: Fix the logging.
Index: StandardNodeEstimator.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/StandardNodeEstimator.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -r1.24 -r1.25
--- StandardNodeEstimator.java 4 Nov 2003 22:07:26 -0000 1.24
+++ StandardNodeEstimator.java 5 Nov 2003 00:06:51 -0000 1.25
@@ -204,7 +204,8 @@
e = (long)estimate;
lastEstimate = e;
- if(e > 24L * 3600L * 1000L || e <= 0) {
+ if(Math.abs(e) > 24L * 3600L * 1000L) {
+ // It can be well below 0, because of new nodes with pDNF <<
pLegitDNF
Core.logger.log(this, "Unreasonable estimate: "+e+" for "+
this, Logger.NORMAL);
}
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs