Author: toad
Date: 2006-11-17 14:40:14 +0000 (Fri, 17 Nov 2006)
New Revision: 10974

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
More realistic maximum for request bytes average.
Apparently we are still having problems with this...

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2006-11-17 13:57:48 UTC (rev 
10973)
+++ trunk/freenet/src/freenet/node/Node.java    2006-11-17 14:40:14 UTC (rev 
10974)
@@ -1239,23 +1239,23 @@
                if(logMINOR) Logger.minor(this, "Read 
throttleFS:\n"+throttleFS);

                // Guesstimates. Hopefully well over the reality.
-               localChkFetchBytesSentAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalChkFetchBytesSentAverage"));
-               localSskFetchBytesSentAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalSskFetchBytesSentAverage"));
-               localChkInsertBytesSentAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalChkInsertBytesSentAverage"));
-               localSskInsertBytesSentAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalSskInsertBytesSentAverage"));
-               localChkFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalChkFetchBytesReceivedAverage"));
-               localSskFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalSskFetchBytesReceivedAverage"));
-               localChkInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(1024, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalChkInsertBytesReceivedAverage"));
-               localSskInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == 
null ? null : throttleFS.subset("LocalChkInsertBytesReceivedAverage"));
+               localChkFetchBytesSentAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, 1024*1024*1024, throttleFS == null 
? null : throttleFS.subset("LocalChkFetchBytesSentAverage"));
+               localSskFetchBytesSentAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, 1024*1024*1024, throttleFS == null 
? null : throttleFS.subset("LocalSskFetchBytesSentAverage"));
+               localChkInsertBytesSentAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("LocalChkInsertBytesSentAverage"));
+               localSskInsertBytesSentAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("LocalSskInsertBytesSentAverage"));
+               localChkFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("LocalChkFetchBytesReceivedAverage"));
+               localSskFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(2048, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("LocalSskFetchBytesReceivedAverage"));
+               localChkInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(1024, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("LocalChkInsertBytesReceivedAverage"));
+               localSskInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(500, 180000, 0.0, 1024*1024*1024, throttleFS == null 
? null : throttleFS.subset("LocalChkInsertBytesReceivedAverage"));

-               remoteChkFetchBytesSentAverage = new 
TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, Integer.MAX_VALUE, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkFetchBytesSentAverage"));
-               remoteSskFetchBytesSentAverage = new 
TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, Integer.MAX_VALUE, 
throttleFS == null ? null : 
throttleFS.subset("RemoteSskFetchBytesSentAverage"));
-               remoteChkInsertBytesSentAverage = new 
TimeDecayingRunningAverage(32768+32768+1024, 180000, 0.0, Integer.MAX_VALUE, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkInsertBytesSentAverage"));
-               remoteSskInsertBytesSentAverage = new 
TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, Integer.MAX_VALUE, 
throttleFS == null ? null : 
throttleFS.subset("RemoteSskInsertBytesSentAverage"));
-               remoteChkFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, Integer.MAX_VALUE, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkFetchBytesReceivedAverage"));
-               remoteSskFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(2048+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS 
== null ? null : throttleFS.subset("RemoteSskFetchBytesReceivedAverage"));
-               remoteChkInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, Integer.MAX_VALUE, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkInsertBytesReceivedAverage"));
-               remoteSskInsertBytesReceivedAverage = new 
TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, Integer.MAX_VALUE, 
throttleFS == null ? null : 
throttleFS.subset("RemoteSskInsertBytesReceivedAverage"));
+               remoteChkFetchBytesSentAverage = new 
TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, 1024*1024*1024, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkFetchBytesSentAverage"));
+               remoteSskFetchBytesSentAverage = new 
TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, 1024*1024*1024, 
throttleFS == null ? null : 
throttleFS.subset("RemoteSskFetchBytesSentAverage"));
+               remoteChkInsertBytesSentAverage = new 
TimeDecayingRunningAverage(32768+32768+1024, 180000, 0.0, 1024*1024*1024, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkInsertBytesSentAverage"));
+               remoteSskInsertBytesSentAverage = new 
TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, 1024*1024*1024, 
throttleFS == null ? null : 
throttleFS.subset("RemoteSskInsertBytesSentAverage"));
+               remoteChkFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, 1024*1024*1024, 
throttleFS == null ? null : 
throttleFS.subset("RemoteChkFetchBytesReceivedAverage"));
+               remoteSskFetchBytesReceivedAverage = new 
TimeDecayingRunningAverage(2048+500, 180000, 0.0, 1024*1024*1024, throttleFS == 
null ? null : throttleFS.subset("RemoteSskFetchBytesReceivedAverage"));
+               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"));

                clientCore = new NodeClientCore(this, config, nodeConfig, 
nodeDir, portNumber, sortOrder, throttleFS == null ? null : 
throttleFS.subset("RequestStarters"));



Reply via email to