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 authored and centic9 committed Nov 4, 2013
1 parent fd4c454 commit 8da47043a6b326c8a9f7ed3d9800dc630963be84
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 8da4704

Please sign in to comment.