From 3258395b4528d9e15674457c502af2b31fb8aaed Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 14:39:59 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E7=A7=BB=E9=99=A4=E6=89=80=E6=9C=89h?= =?UTF-8?q?ires=E7=BC=A9=E6=94=BE=20=E5=9B=9E=E5=88=B0=E5=8E=9F=E5=A7=8B?= =?UTF-8?q?=E5=88=86=E8=BE=A8=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 8e29d4a..7d03a7d 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -273,17 +273,11 @@ try { _chartInstances[id] = { cpu: null, mem: null, net: null }; if (typeof MiniChart !== 'undefined') { - var _hires = function(mc){ var fn=mc.resize||mc.applyResize; if(!fn)return; var orig=fn.bind(mc); var wrap=function(){ orig(); mc.canvas.width*=4; mc.ctx.scale(4,1); mc.draw(); }; if(mc.resize)mc.resize=wrap; else mc.applyResize=wrap; wrap(); }; - _chartInstances[id].cpu = new MiniChart(id+'-cpu', '#7aa2f7'); _hires(_chartInstances[id].cpu); - _chartInstances[id].mem = new MiniChart(id+'-mem', '#9ece6a'); _hires(_chartInstances[id].mem); + _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'); - (function(dlc){ - var orig = dlc.applyResize.bind(dlc); - dlc.applyResize = function(){ orig(); dlc.canvas.width *= 4; dlc.ctx.scale(4,1); dlc.draw(); }; - dlc.applyResize(); - })(_chartInstances[id].net); + } } catch(e) {} }