Skip to content

Commit c48015f

Browse files
committed
Merge pull request apache#84 from ad201717/patch-1
Update CountUtils.java
2 parents 07d3b30 + 227557c commit c48015f

File tree

1 file changed

+3
-3
lines changed
  • dubbo-simple/dubbo-monitor-simple/src/main/java/com/alibaba/dubbo/monitor/simple

1 file changed

+3
-3
lines changed

dubbo-simple/dubbo-monitor-simple/src/main/java/com/alibaba/dubbo/monitor/simple/CountUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public static long sum(File file) {
4646
}
4747

4848
public static long max(File file) {
49-
return calc(file, SUM);
49+
return calc(file, MAX);
5050
}
5151

5252
public static long avg(File file) {
53-
return calc(file, SUM);
53+
return calc(file, AVG);
5454
}
5555

5656
private static long calc(File file, int op) {
@@ -90,4 +90,4 @@ private static long calc(File file, int op) {
9090
return 0;
9191
}
9292

93-
}
93+
}

0 commit comments

Comments
 (0)