From e0b881d843ffc5a0cab8818e5f0babac78d829e7 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 14:04:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20NET=E5=9B=BE=E8=A1=A8=E7=94=A8=E7=8B=AC?= =?UTF-8?q?=E7=AB=8BIIFE=E7=A1=AE=E4=BF=9D2x=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 1eac99c..2da6d10 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -278,7 +278,12 @@ _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'); _hires(_chartInstances[id].net); + _chartInstances[id].net = new DualLineChart(id+'-net', '#bb9af7', '#c0a8f0'); + (function(dlc){ + var orig = dlc.applyResize.bind(dlc); + dlc.applyResize = function(){ orig(); dlc.canvas.width *= 2; dlc.ctx.scale(2,1); dlc.draw(); }; + dlc.applyResize(); + })(_chartInstances[id].net); } } catch(e) {} }