Author: toad
Date: 2009-04-14 23:08:53 +0000 (Tue, 14 Apr 2009)
New Revision: 26814

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
Fix dconrado's NumberFormatException preventing node startup :|


Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2009-04-14 23:03:41 UTC 
(rev 26813)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2009-04-14 23:08:53 UTC 
(rev 26814)
@@ -711,8 +711,8 @@
                else
                        sendHandshakeTime = now;  // Be sure we're ready to 
handshake right away
 
-               totalInputSinceStartup = Long.parseLong(fs.get("totalInput"));
-               totalOutputSinceStartup = Long.parseLong(fs.get("totalOutput"));
+               totalInputSinceStartup = fs.getLong("totalInput", 0);
+               totalOutputSinceStartup = fs.getLong("totalOutput", 0);
 
        // status may have changed from PEER_NODE_STATUS_DISCONNECTED to 
PEER_NODE_STATUS_NEVER_CONNECTED
        }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to