Skip to content

Commit

Permalink
Merge pull request #704 from setchy/fix/audited-violations-percentage
Browse files Browse the repository at this point in the history
fix: correctly calculate audited violations and audited findings percentages
  • Loading branch information
nscuro authored Jan 27, 2024
2 parents c97691d + 5e5a004 commit 151c4b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@
this.totalFindings = common.valueWithDefault(metric.findingsTotal, "0");
this.auditedFindings = common.valueWithDefault(metric.findingsAudited, "0");
this.auditedFindingPercent = common.calcProgressPercent(this.findingsTotal, this.findingsAudited);
this.auditedFindingPercent = common.calcProgressPercent(this.totalFindings, this.auditedFindings);
this.totalViolations = common.valueWithDefault(metric.policyViolationsTotal, "0");
this.auditedViolations = common.valueWithDefault(metric.policyViolationsAudited, "0");
this.auditedViolationsPercent = common.calcProgressPercent(this.policyViolationsTotal, this.policyViolationsAudited);
this.auditedViolationsPercent = common.calcProgressPercent(this.totalViolations, this.auditedViolations);
this.vulnerabilities = common.valueWithDefault(metric.vulnerabilities, "0");
this.suppressed = common.valueWithDefault(metric.suppressed, "0");
Expand Down

0 comments on commit 151c4b3

Please sign in to comment.