From 889116872b965a9f2f2ea8ee24a18652be64b74f Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 27 Jun 2025 18:21:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3KP=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E4=B8=AD=E7=99=BE=E5=88=86=E6=AF=94=E5=80=BC=E7=9A=84=E4=B8=8B?= =?UTF-8?q?=E9=99=90=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/pm/performance.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/pm/performance.go b/features/pm/performance.go index f45ec95f..135ace03 100644 --- a/features/pm/performance.go +++ b/features/pm/performance.go @@ -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 }