Author: toad
Date: 2008-04-28 16:39:38 +0000 (Mon, 28 Apr 2008)
New Revision: 19592
Modified:
trunk/freenet/src/freenet/node/NodeStats.java
Log:
Logging
Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java 2008-04-28 16:25:21 UTC
(rev 19591)
+++ trunk/freenet/src/freenet/node/NodeStats.java 2008-04-28 16:39:38 UTC
(rev 19592)
@@ -586,6 +586,9 @@
}
double bandwidthAvailableInput =
node.getInputBandwidthLimit() * 90; // 90 seconds at
full power
+ if(bandwidthAvailableInput < 0){
+ Logger.error(this, "Negative available bandwidth:
"+bandwidthAvailableInput);
+ }
if(bandwidthLiabilityInput > bandwidthAvailableInput) {
pInstantRejectIncoming.report(1.0);
rejected("Input bandwidth liability", isLocal);