Skip to content
Permalink
Browse files
[JENKINS-19661] Inconsistent complexity score on the dashboard portlet
Complexity score is now the mean.
  • Loading branch information
mabako committed Sep 19, 2013
1 parent 3a9f2f3 commit 61acefed91c2b72142dbb439d8a6efe79110c0cd
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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;
}

0 comments on commit 61acefe

Please sign in to comment.