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

Modified:
   trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
Log:
Explain why have disabled the sensitivity hack

Modified: trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2008-02-12 13:31:45 UTC (rev 17814)
+++ trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2008-02-12 13:35:09 UTC (rev 17815)
@@ -183,6 +183,9 @@
                                        if(timeSkewCallback != null)
                                                
timeSkewCallback.setTimeSkewDetectedUserAlert();
                                        return;
+                               // 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!
                                //} else {
                                        //double oneFourthOfUptime = uptime / 
4D;
                                        //if(oneFourthOfUptime < thisHalfLife) 
thisHalfLife = oneFourthOfUptime;


Reply via email to