Skip to content
Permalink
Browse files
Merge pull request #31 from mabako/complexity
[JENKINS-19661] Inconsistent complexity score on the dashboard portlet
  • Loading branch information
ognjenb committed Nov 4, 2013
2 parents 03bae78 + 61acefe commit 98570302f54a1d869878c9d5083de4de88eddb6a
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 9857030

Please sign in to comment.