From 4bc6aab6a1df3a410b86ff4d677e9823de8de0f8 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 25 Mar 2025 18:39:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=99=90=E5=88=B6KPI=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E4=B8=8D=E8=B6=85=E8=BF=87100%?= 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 7c27f562..3b597213 100644 --- a/features/pm/performance.go +++ b/features/pm/performance.go @@ -318,6 +318,9 @@ func PostKPIReportFromNF(w http.ResponseWriter, r *http.Request) { kpiCVal.Value = 0.0 kpiCVal.Err = err.Error() } else { + if *k.Unit == "%" && result > 100 { + result = 100 + } kpiCVal.Value = result }