From 97405d73e8c1f89424256606b490d68f95495992 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 09:01:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20NET=E5=9B=BE=E8=A1=A8=E6=83=B0=E6=80=A7?= =?UTF-8?q?=E9=87=8F=E7=A8=8B=20=E2=80=94=20=E4=BB=85=E6=89=A9=E4=B8=8D?= =?UTF-8?q?=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 27b1af5..9020053 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -260,7 +260,9 @@ if (charts.net) { var rx = net.rx_bytes_sec||0, tx = net.tx_bytes_sec||0; charts.net.update(rx, tx); - charts.net.maxVal = Math.max(charts.net.maxVal, 1024); + // 惰性量程: 仅当数据超过当前上限才扩大 + var curMax = Math.max(rx, tx, 100); + if (curMax > charts.net.maxVal) charts.net.maxVal = curMax; } } catch(e) {} }