Navigation Menu

Skip to content

Commit

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

Please sign in to comment.