Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Dec 19, 2024
1 parent f8e291e commit 6e0bb6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/jgroups/util/Average.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public Average(final int capacity) {
public int capacity() {return samples.length;}
public TimeUnit unit() {return unit;}
public <T extends Average> T unit(TimeUnit u) {this.unit=u; return (T)this;}
public double getAverage() {return average();}

public <T extends Average> T add(double num) {
if(num < 0)
Expand Down

0 comments on commit 6e0bb6a

Please sign in to comment.