Update of /cvsroot/freenet/freenet/src/freenet/node
In directory sc8-pr-cvs1:/tmp/cvs-serv29371/src/freenet/node
Modified Files:
Main.java
Log Message:
Prevent possible NPE by calling updateNewNodeStats(); in NGRoutingTable constuctor.
Old code assumed that everyone would have added at least one node to the rt or routed
once before 'newNodeStats' was used.
Supply location of routing files in NGRoutingTable constructor instead of having
NGRoutingTable use the static variable 'Node.routingDir'
Make the NGRoutingTable able to guess a mean network file size even when it doesn't
have a ds to ask. In that case a default size of 128k will currently be used.
Index: Main.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/Main.java,v
retrieving revision 1.315
retrieving revision 1.316
diff -u -w -r1.315 -r1.316
--- Main.java 25 Nov 2003 15:56:01 -0000 1.315
+++ Main.java 26 Nov 2003 13:09:43 -0000 1.316
@@ -789,7 +789,7 @@
" to "+initFastestTransfer, Logger.NORMAL);
NGRoutingTable ngrt =
new NGRoutingTable(routingStore, Node.rtMaxNodes,
- nef, tef, initFastestTransfer);
+ nef, tef, initFastestTransfer,Node.routingDir);
Core.logger.log(Main.class, "Created new NGRT",
Logger.NORMAL);
rt = ngrt;
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs