From 8c07b43b8a149da21a4a5684a160d7b2dbfb12af Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 26 Mar 2025 14:12:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=AE=9A=E4=B9=89KP%I=E5=80=BC?= =?UTF-8?q?=E4=B8=BA=E6=9C=80=E5=A4=A7100%?= 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 265c8a41..28eb7a1b 100644 --- a/features/pm/performance.go +++ b/features/pm/performance.go @@ -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)