diff --git a/core/java/src/net/i2p/stat/Rate.java b/core/java/src/net/i2p/stat/Rate.java index f292acb933907ce6da8098abd4769472dacde50a..26778cd0732a734925e3aadb474c4a49a89b7591 100644 --- a/core/java/src/net/i2p/stat/Rate.java +++ b/core/java/src/net/i2p/stat/Rate.java @@ -289,6 +289,7 @@ public class Rate { /** * @return the average or lifetime average depending on last event count + * @since 0.9.4 */ public synchronized double getAvgOrLifetimeAvg() { if (getLastEventCount() > 0) @@ -416,6 +417,7 @@ public class Rate { /** * @return a thread-local temp object containing computed averages. + * @since 0.9.4 */ public RateAverages computeAverages() { return computeAverages(RateAverages.getTemp(),false); @@ -426,6 +428,7 @@ public class Rate { * @param useLifetime whether the lifetime average should be used if * there are no events. * @return the same RateAverages object for chaining + * @since 0.9.4 */ public synchronized RateAverages computeAverages(RateAverages out, boolean useLifetime) { out.reset(); diff --git a/core/java/src/net/i2p/stat/RateAverages.java b/core/java/src/net/i2p/stat/RateAverages.java index 37030f013d10129adfc5b677c7ba089f58197c3d..375bf0af8608e42b41e32ffc6837673fe2622711 100644 --- a/core/java/src/net/i2p/stat/RateAverages.java +++ b/core/java/src/net/i2p/stat/RateAverages.java @@ -41,7 +41,7 @@ public class RateAverages { * if there are any events (current or last) => weighted average * otherwise if the useLifetime parameter to Rate.computeAverages was: * true => the lifetime average value - * false => the current average value + * false => zero */ public double getAverage() { return average;