Skip to content

Commit

Permalink
[JENKINS-19661] Inconsistent complexity score on the dashboard portlet
Browse files Browse the repository at this point in the history
Complexity score is now the mean.
  • Loading branch information
mabako committed Sep 19, 2013
1 parent 3a9f2f3 commit 61acefe
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -194,8 +194,7 @@ public float getTotalComplexityScore() {
if (this.getCoverageResults().size() <= 0) {
return 0.0f;
} else {
// FIXME not sure if we should aggregate these by summation or mean
float totalComplex = this.getComplexityScore();
float totalComplex = this.getComplexityScore() / this.getCoverageResults().size();
totalComplex = Utils.roundFLoat(1, BigDecimal.ROUND_HALF_EVEN, totalComplex);
return totalComplex;
}
Expand Down

0 comments on commit 61acefe

Please sign in to comment.