Inverting posture score

This commit is contained in:
Ben Hirschberg
2021-09-13 08:31:13 +03:00
parent ff9cf4adf0
commit 4cd8476837
+1 -1
View File
@@ -248,6 +248,6 @@ func (opap *OPAProcessor) updateResults() {
sumTotal += controlReport.GetNumberOfResources()
opap.PostureReport.FrameworkReports[f].ControlReports[c].Score = float32(percentage(controlReport.GetNumberOfResources(), controlReport.GetNumberOfFailedResources()))
}
opap.PostureReport.FrameworkReports[f].Score = float32(percentage(sumTotal, sumFailed))
opap.PostureReport.FrameworkReports[f].Score = float32(percentage(sumTotal, sumTotal-sumFailed))
}
}