I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 7c96044d authored by zab's avatar zab
Browse files

javadoc

parent 8c987fc0
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment