Author: toad
Date: 2008-02-12 13:35:49 +0000 (Tue, 12 Feb 2008)
New Revision: 17816

Modified:
   trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
Log:
A little more comments

Modified: trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2008-02-12 13:35:09 UTC (rev 17815)
+++ trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2008-02-12 13:35:49 UTC (rev 17816)
@@ -186,6 +186,7 @@
                                // Disable sensitivity hack.
                                // Excessive sensitivity at start isn't 
necessarily a good thing.
                                // In particular it makes the average 
inconsistent - 20 reports of 0 at 1s intervals have a *different* effect to 10 
reports of 0 at 2s intervals!
+                               // Also it increases the impact of startup 
spikes, which then take a long time to recover from.
                                //} else {
                                        //double oneFourthOfUptime = uptime / 
4D;
                                        //if(oneFourthOfUptime < thisHalfLife) 
thisHalfLife = oneFourthOfUptime;


Reply via email to