Skip to content

Commit

Permalink
Fix Bug for maxConcurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhiguo committed Jun 20, 2016
1 parent 9a7dfd6 commit a712895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/handu/open/dubbo/monitor/CountUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public static long sum(File file) {
}

public static long max(File file) {
return calc(file, SUM);
return calc(file, MAX);
}

public static long avg(File file) {
return calc(file, SUM);
return calc(file, AVG);
}

private static long calc(File file, int op) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mappers/DubboInvokeMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
SUM(dubbo_invoke.failure) as failure,
SUM(dubbo_invoke.elapsed) as elapsed,
MAX(dubbo_invoke.max_elapsed) as maxElapsed,
MIN(dubbo_invoke.max_concurrent) as maxConcurrent
MAX(dubbo_invoke.max_concurrent) as maxConcurrent
FROM dubbo_invoke
WHERE
1 = 1
Expand Down

0 comments on commit a712895

Please sign in to comment.