Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Sep 4, 2024
1 parent f565afe commit e5ab788
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/org/jgroups/protocols/TIME.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,8 @@ protected static double avgTimePerMessageIncludingDelay(int num, long time) {
}

protected static void add(final AverageMinMax avg, long num) {
if(num > 0) {
//noinspection SynchronizationOnLocalVariableOrMethodParameter
synchronized(avg) {
avg.add(num);
}
}
if(num > 0)
avg.add(num);
}

}

0 comments on commit e5ab788

Please sign in to comment.