Hi,
I have committed two ng routing fixes. The first change just makes
the ng weight calculation be internally consistant.
The second is fairly important. When we got timeouts the time used to update
the search failed time was wrong. This lead to very large numbers for search
failed time and effectively prevented the node from be routed too...
To really make this fix help you should reseed or apply the following hack,
rebuild and restart.
Ed
--- DecayingRunningAverage.java.orig 2003-09-29 17:59:35.000000000 -0400
+++ DecayingRunningAverage.java 2003-09-29 19:42:48.000000000 -0400
@@ -1,6 +1,7 @@
package freenet.node.rt;
import freenet.support.DataObject;
+import freenet.Core;
import java.io.IOException;
import java.io.DataOutputStream;
import java.io.DataInputStream;
@@ -17,6 +18,13 @@
throws IOException {
this.decayFactor = decayFactor;
this.currentVal = dis.readDouble();
+ // hack to correct data - to be removed. edt
+ if(currentVal<0 || currentVal>3600000) {
+ Core.logger.log(this, "reset "+currentVal,
+ new Exception("debug"),
+ Core.logger.NORMAL);
+ currentVal = Core.hopTime(1);
+ }
}
public final double currentValue() {
----
_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl