Author: toad
Date: 2006-06-28 23:41:35 +0000 (Wed, 28 Jun 2006)
New Revision: 9399

Modified:
   trunk/freenet/src/freenet/node/Version.java
   trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
Log:
844: doh.

Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-06-28 23:40:09 UTC (rev 
9398)
+++ trunk/freenet/src/freenet/node/Version.java 2006-06-28 23:41:35 UTC (rev 
9399)
@@ -18,11 +18,11 @@
        public static final String protocolVersion = "1.0";

        /** The build number of the current revision */
-       private static final int buildNumber = 843;
+       private static final int buildNumber = 844;

        /** Oldest build of Fred we will talk to */
        private static final int oldLastGoodBuild = 839;
-       private static final int newLastGoodBuild = 843;
+       private static final int newLastGoodBuild = 844;
        private static final long transitionTime = 1151625600000L; // 0:00 GMT 
30/06/06

        public static final int buildNumber() {

Modified: trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2006-06-28 23:40:09 UTC (rev 9398)
+++ trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2006-06-28 23:41:35 UTC (rev 9399)
@@ -114,7 +114,7 @@
                  now - lastReportTime;
             double thisHalfLife = halfLife;
             long uptime = now - createdTime;
-            //if((uptime / 4) < thisHalfLife) thisHalfLife = (uptime / 4);
+            if((uptime / 4) < thisHalfLife) thisHalfLife = (uptime / 4);
             if(thisHalfLife == 0) thisHalfLife = 1;
             double changeFactor =
                Math.pow(0.5, ((double)thisInterval) / thisHalfLife);


Reply via email to