From fd5a820584d8572d9dbd87ee4251e29aba752e27 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 09:02:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20NET=E5=9B=BE=E8=A1=A8=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E5=88=B0=E8=87=AA=E7=84=B6=E9=87=8F=E7=A8=8B=20=E2=80=94=2060?= =?UTF-8?q?=E7=82=B9=E7=AA=97=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=B3=B0=E5=80=BC=E5=9B=9E=E8=90=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 9020053..b86cbc6 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -258,11 +258,7 @@ if (charts.cpu) charts.cpu.update(cpuVal); if (charts.mem) charts.mem.update(memVal); if (charts.net) { - var rx = net.rx_bytes_sec||0, tx = net.tx_bytes_sec||0; - charts.net.update(rx, tx); - // 惰性量程: 仅当数据超过当前上限才扩大 - var curMax = Math.max(rx, tx, 100); - if (curMax > charts.net.maxVal) charts.net.maxVal = curMax; + charts.net.update(net.rx_bytes_sec||0, net.tx_bytes_sec||0); } } catch(e) {} }