fix: 修正KP计算中百分比值的下限为0

This commit is contained in:
TsMask committed 2025-06-27 18:21:47 +08:00
1 parent 4e2912aed1
commit 889116872b
1 file changed
+3
+3
View File
@@ -321,6 +321,9 @@ func PostKPIReportFromNF(w http.ResponseWriter, r *http.Request) {
if *k.Unit == "%" && result > 100 {
result = 100
}
if *k.Unit == "%" && result < 0 {
result = 0
}
kpiCVal.Value = result
}