Skip to content

Commit

Permalink
fix: correctly calculate audited findings percentage
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Jan 26, 2024
1 parent 3854443 commit 5e5a004
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 @@ -199,7 +199,7 @@
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");
Expand Down

0 comments on commit 5e5a004

Please sign in to comment.