From 7f7a3322fbfeb08b365c7a6bb383d36a228c177a Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 14:45:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20NET=E5=9B=BE=E8=A1=A8=E6=B7=B1=E7=B4=AB?= =?UTF-8?q?=E8=89=B2+=E9=A2=84=E8=AE=BE=E6=95=B0=E6=8D=AE=E8=AE=A9?= =?UTF-8?q?=E7=BA=BF=E5=8F=AF=E8=A7=81?= 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 7d03a7d..3ac05bb 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -276,7 +276,9 @@ _chartInstances[id].cpu = new MiniChart(id+'-cpu', '#7aa2f7'); _chartInstances[id].mem = new MiniChart(id+'-mem', '#9ece6a'); _hires(_chartInstances[id].mem); } if (typeof DualLineChart !== 'undefined') { - _chartInstances[id].net = new DualLineChart(id+'-net', '#bb9af7', '#c0a8f0'); + _chartInstances[id].net = new DualLineChart(id+'-net', '#7c3aed', '#a78bfa'); + // 默认设一些初始数据让线可见 + for (var _i=0; _i<10; _i++) _chartInstances[id].net.update(5000, 3000); } } catch(e) {}