Update of /cvsroot/freenet/freenet/src/freenet/node
In directory sc8-pr-cvs1:/tmp/cvs-serv10299/src/freenet/node

Modified Files:
      Tag: ngrouting
        Main.java 
Log Message:
Track total request time, use it in the NGRouting calculation - we were supposed to do 
this in the first place. Major source of skew for NGRouting corrected, we will see how 
it works in practice...


Index: Main.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/Main.java,v
retrieving revision 1.234.2.10
retrieving revision 1.234.2.11
diff -u -r1.234.2.10 -r1.234.2.11
--- Main.java   26 Aug 2003 23:04:34 -0000      1.234.2.10
+++ Main.java   27 Aug 2003 15:54:35 -0000      1.234.2.11
@@ -740,7 +740,7 @@
                                                                " to 
"+initFastestTransfer, Logger.NORMAL);
                                NGRoutingTable ngrt = 
                                        new NGRoutingTable(routingStore, 
Node.rtMaxNodes,
-                                                                          nef, 
initFastestTransfer);
+                                                                          nef, tef, 
initFastestTransfer);
                                Core.logger.log(Main.class, "Created new NGRT",
                                                                Logger.NORMAL);
                                rt = ngrt;
@@ -949,7 +949,9 @@
                     if (params.getBoolean("watchme")) {
                         new Checkpoint(watchme).schedule(node);
                     }
-
+                                       
+                                       if(origRT instanceof NGRoutingTable)
+                                               new 
Checkpoint((NGRoutingTable)origRT).schedule(node);
                                        // schedule ARK insertion
                                        try {
                                                synchronized(ARKInserterLock) {

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to