diff --git a/features/pm/performance.go b/features/pm/performance.go index 42351e7b..0a779084 100644 --- a/features/pm/performance.go +++ b/features/pm/performance.go @@ -240,6 +240,12 @@ func saveKPIDataC(kpiReport KpiReport, index int64) int64 { item["value"] = 0 item["err"] = err.Error() } else { + if *v.Unit == "%" && result > 100 { + result = 100 + } + if *v.Unit == "%" && result < 0 { + result = 0 + } item["value"] = result } KpiValues = append(KpiValues, item)