Skip to content

Commit

Permalink
fix: correctly calculate audited findings percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Jan 26, 2024
1 parent 28c4f18 commit 080e69d
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 080e69d

Please sign in to comment.