[freenet-cvs] r12179 - trunk/freenet/src/freenet/support/math
nextgens at freenetproject.org
nextgens at freenetproject.org
Sat Mar 17 13:51:48 UTC 2007
Author: nextgens
Date: 2007-03-17 13:51:47 +0000 (Sat, 17 Mar 2007)
New Revision: 12179
Modified:
trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java
Log:
Doh!
Modified: trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java 2007-03-17 13:48:51 UTC (rev 12178)
+++ trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java 2007-03-17 13:51:47 UTC (rev 12179)
@@ -57,9 +57,8 @@
if(fs != null) {
currentValue = fs.getDouble("CurrentValue", currentValue);
reports = fs.getLong("Reports", reports);
- zeros = fs.getLong("Zeros", zeros);
- ones = fs.getLong("Ones", ones);
- if(reports == 0) zeros = ones = 0;
+ zeros = fs.getLong("Zeros", reports);
+ ones = fs.getLong("Ones", reports);
}
}
More information about the cvs
mailing list