Author: toad
Date: 2008-03-10 22:16:30 +0000 (Mon, 10 Mar 2008)
New Revision: 18444
Modified:
trunk/freenet/src/freenet/node/NodeStats.java
Log:
Fix typo (expectedReceived not expectedSent), may have caused recycling more
bytes than claimed.
Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java 2008-03-10 22:04:11 UTC
(rev 18443)
+++ trunk/freenet/src/freenet/node/NodeStats.java 2008-03-10 22:16:30 UTC
(rev 18444)
@@ -498,9 +498,9 @@
expected = this.getThrottle(isLocal, isInsert, isSSK,
false).currentValue();
int expectedReceived = (int)Math.max(expected, 0);
if(logMINOR)
- Logger.minor(this, "Expected received bytes:
"+expectedSent);
+ Logger.minor(this, "Expected received bytes:
"+expectedReceived);
if(!requestInputThrottle.instantGrab(expectedReceived)) {
- requestOutputThrottle.recycle(expectedSent);
+ requestOutputThrottle.recycle(expectedReceived);
pInstantRejectIncoming.report(1.0);
rejected("Insufficient input bandwidth", isLocal);
return "Insufficient input bandwidth";