Skip to content

Commit

Permalink
fix: correctly calculate audited violations percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Jan 25, 2024
1 parent c97691d commit 3d4eb1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
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 3d4eb1b

Please sign in to comment.