Author: odonata
Date: 2006-06-26 11:39:39 +0000 (Mon, 26 Jun 2006)
New Revision: 9388

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
Use a time decaying running average - this gives more stable
numbers once you realize the halflife is in ms.


Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2006-06-26 07:43:39 UTC (rev 
9387)
+++ trunk/freenet/src/freenet/node/Node.java    2006-06-26 11:39:39 UTC (rev 
9388)
@@ -642,8 +642,8 @@
        private static final boolean USE_RAM_PUBKEYS_CACHE = true;

        // various metrics
-       public RunningAverage MissRoutingDistance = new 
BootstrappingDecayingRunningAverage(0.0, 0.0, 1.0, 500);
-       public RunningAverage BackedoffPercent = new 
BootstrappingDecayingRunningAverage(0.0, 0.0, 1.0, 500);
+       public RunningAverage MissRoutingDistance = new 
TimeDecayingRunningAverage(0.0, 180000, 0.0, 1.0);
+       public RunningAverage BackedoffPercent = new 
TimeDecayingRunningAverage(0.0, 180000, 0.0, 1.0);

        /**
         * Read all storable settings (identity etc) from the node file.


Reply via email to