Update of /cvsroot/freenet/freenet/src/freenet/node/rt
In directory sc8-pr-cvs1:/tmp/cvs-serv19791/src/freenet/node/rt
Modified Files:
NGRouting.java
Log Message:
6291: try to catch negative reports in NGRouting.
Index: NGRouting.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/NGRouting.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -r1.13 -r1.14
--- NGRouting.java 31 Oct 2003 19:38:22 -0000 1.13
+++ NGRouting.java 31 Oct 2003 19:46:49 -0000 1.14
@@ -142,7 +142,12 @@
public void queryRejected(boolean cached, long attenuation) {
long now = System.currentTimeMillis();
- searchFailed(now - lastTime);
+ long diff = now - lastTime;
+ searchFailed(diff);
+ if(diff < 0) {
+ Core.logger.log(this, "WTF? queryRejected causing negative
searchFailed time: now="+
+ now+", lastTime="+lastTime+", diff="+diff+" on "+this,
Logger.ERROR);
+ }
lastTime = now;
}
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs