[freenet-cvs] r18725 - trunk/freenet/src/freenet/node

nextgens at freenetproject.org nextgens at freenetproject.org
Sun Mar 23 03:25:48 UTC 2008


Author: nextgens
Date: 2008-03-23 03:25:48 +0000 (Sun, 23 Mar 2008)
New Revision: 18725

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
doh

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java	2008-03-22 17:32:26 UTC (rev 18724)
+++ trunk/freenet/src/freenet/node/Node.java	2008-03-23 03:25:48 UTC (rev 18725)
@@ -907,13 +907,12 @@
 		});
 		
 		int ibwLimit = nodeConfig.getInt("inputBandwidthLimit");
-		if(ibwLimit <= 0)
-			throw new NodeInitException(NodeInitException.EXIT_BAD_BWLIMIT, "Invalid inputBandwidthLimit");
-		inputBandwidthLimit = ibwLimit;
 		if(ibwLimit == -1) {
 			inputLimitDefault = true;
 			ibwLimit = obwLimit * 4;
-		}
+		} else if(ibwLimit <= 0)
+			throw new NodeInitException(NodeInitException.EXIT_BAD_BWLIMIT, "Invalid inputBandwidthLimit");
+		inputBandwidthLimit = ibwLimit;
 		
 		nodeConfig.register("throttleLocalTraffic", false, sortOrder++, true, false, "Node.throttleLocalTraffic", "Node.throttleLocalTrafficLong", new BooleanCallback() {
 




More information about the cvs mailing list