Author: toad
Date: 2008-02-12 13:25:39 +0000 (Tue, 12 Feb 2008)
New Revision: 17810

Modified:
   trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
Log:
and on stderr

Modified: trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2008-02-12 13:24:16 UTC (rev 17809)
+++ trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2008-02-12 13:25:39 UTC (rev 17810)
@@ -183,9 +183,9 @@
                                        if(timeSkewCallback != null)
                                                
timeSkewCallback.setTimeSkewDetectedUserAlert();
                                        return;
-                               } else {
-                                       double oneFourthOfUptime = uptime / 4D;
-                                       if(oneFourthOfUptime < thisHalfLife) 
thisHalfLife = oneFourthOfUptime;
+                               //} else {
+                                       //double oneFourthOfUptime = uptime / 
4D;
+                                       //if(oneFourthOfUptime < thisHalfLife) 
thisHalfLife = oneFourthOfUptime;
                                }

                                if(thisHalfLife == 0) thisHalfLife = 1;


Reply via email to