fix: 修正KP计算中百分比值的下限为0
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user