Author: robert
Date: 2007-12-26 22:56:01 +0000 (Wed, 26 Dec 2007)
New Revision: 16818

Modified:
   trunk/freenet/src/freenet/support/math/DecayingKeyspaceAverage.java
Log:
return normalized values for valueIfReported()


Modified: trunk/freenet/src/freenet/support/math/DecayingKeyspaceAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/DecayingKeyspaceAverage.java 
2007-12-26 20:51:38 UTC (rev 16817)
+++ trunk/freenet/src/freenet/support/math/DecayingKeyspaceAverage.java 
2007-12-26 22:56:01 UTC (rev 16818)
@@ -70,7 +70,7 @@
                double superValue=avg.currentValue();
                double thisValue=Location.normalize(superValue);
                double diff=Location.change(thisValue, d);
-               return avg.valueIfReported(superValue+diff);
+               return Location.normalize(avg.valueIfReported(superValue+diff));
        }

     public synchronized long countReports() {


Reply via email to