Skip to content

Commit

Permalink
Merge pull request #84 from ad201717/patch-1
Browse files Browse the repository at this point in the history
Update CountUtils.java
  • Loading branch information
teaey committed Apr 17, 2016
2 parents 07d3b30 + 227557c commit c48015f
Showing 1 changed file with 3 additions and 3 deletions.
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 Expand Up @@ -90,4 +90,4 @@ private static long calc(File file, int op) {
return 0;
}

}
}

0 comments on commit c48015f

Please sign in to comment.