diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 74dddba2d..dea4eba64 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -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");