fix: 自定义KP%I值为最大100%
This commit is contained in:
@@ -240,6 +240,9 @@ func saveKPIDataC(kpiReport KpiReport, index int64) int64 {
|
||||
item["value"] = 0
|
||||
item["err"] = err.Error()
|
||||
} else {
|
||||
if *v.Unit == "%" && result > 100 {
|
||||
result = 100
|
||||
}
|
||||
item["value"] = result
|
||||
}
|
||||
KpiValues = append(KpiValues, item)
|
||||
|
||||
Reference in New Issue
Block a user