Author: toad
Date: 2007-08-09 09:59:27 +0000 (Thu, 09 Aug 2007)
New Revision: 14554
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 2007-08-09 09:56:03 UTC
(rev 14553)
+++ trunk/freenet/src/freenet/node/NodeStats.java 2007-08-09 09:59:27 UTC
(rev 14554)
@@ -452,6 +452,8 @@
(isInsert ? (isSSK ?
this.remoteSskInsertBytesSentAverage : this.remoteChkInsertBytesSentAverage)
: (isSSK ?
this.remoteSskFetchBytesSentAverage :
this.remoteChkFetchBytesSentAverage)).currentValue();
int expectedSent = (int)Math.max(expected, 0);
+ if(logMINOR)
+ Logger.minor(this, "Expected sent bytes:
"+expectedSent);
if(!requestOutputThrottle.instantGrab(expectedSent)) {
pInstantRejectIncoming.report(1.0);
preemptiveRejectReasons.inc("Insufficient output
bandwidth");
@@ -461,6 +463,8 @@
(isInsert ? (isSSK ?
this.remoteSskInsertBytesReceivedAverage :
this.remoteChkInsertBytesReceivedAverage)
: (isSSK ?
this.remoteSskFetchBytesReceivedAverage :
this.remoteChkFetchBytesReceivedAverage)).currentValue();
int expectedReceived = (int)Math.max(expected, 0);
+ if(logMINOR)
+ Logger.minor(this, "Expected received bytes:
"+expectedSent);
if(!requestInputThrottle.instantGrab(expectedReceived)) {
requestOutputThrottle.recycle(expectedSent);
pInstantRejectIncoming.report(1.0);