Author: toad
Date: 2007-04-13 20:23:43 +0000 (Fri, 13 Apr 2007)
New Revision: 12658

Modified:
   trunk/freenet/src/freenet/node/NodeStats.java
Log:
Correct the defaults

Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java       2007-04-13 20:18:29 UTC 
(rev 12657)
+++ trunk/freenet/src/freenet/node/NodeStats.java       2007-04-13 20:23:43 UTC 
(rev 12658)
@@ -288,14 +288,14 @@
                remoteChkInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, 1024*1024*1024, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkInsertBytesReceivedAverage"));
                remoteSskInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, 1024*1024*1024, 
throttleFS == null ? null : 
throttleFS.subset("RemoteSskInsertBytesReceivedAverage"));

-               successfulChkFetchBytesSentAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, 1024*1024*1024, throttleFS == null 
? null : throttleFS.subset("SuccessfulChkFetchBytesSentAverage"));
-               successfulSskFetchBytesSentAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, 1024*1024*1024, throttleFS == null 
? null : throttleFS.subset("SuccessfulSskFetchBytesSentAverage"));
+               successfulChkFetchBytesSentAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulChkFetchBytesSentAverage"));
+               successfulSskFetchBytesSentAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulSskFetchBytesSentAverage"));
                successfulChkInsertBytesSentAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulChkInsertBytesSentAverage"));
                successfulSskInsertBytesSentAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulSskInsertBytesSentAverage"));
                successfulChkFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulChkFetchBytesReceivedAverage"));
                successfulSskFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulSskFetchBytesReceivedAverage"));
-               successfulChkInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(1024, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulChkInsertBytesReceivedAverage"));
-               successfulSskInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, 1024*1024*1024, throttleFS == null 
? null : throttleFS.subset("SuccessfulSskInsertBytesReceivedAverage"));
+               successfulChkInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulChkInsertBytesReceivedAverage"));
+               successfulSskInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("SuccessfulSskInsertBytesReceivedAverage"));

                requestOutputThrottle = 
                        new TokenBucket(Math.max(obwLimit*60, 32768*20), 
(int)((1000L*1000L*1000L) / (obwLimit * 
FRACTION_OF_BANDWIDTH_USED_BY_REQUESTS)), 0);


Reply via email to