From 997bdc92ff79655c9f029467ea64a52272b070c1 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 13:55:30 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E6=92=A4=E9=94=80DPR=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E6=94=B9=E5=8A=A8=20=E5=9B=9E=E5=88=B060px=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index b8c7fc6..0cb435c 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -245,9 +245,9 @@ (n.notes ? '
📝 '+esc(n.notes)+'
' : '')+ ''+ '
'+ - '
CPU 0%
'+ - '
MEM 0%
'+ - '
NET 0 0
'+ + '
CPU 0%
'+ + '
MEM 0%
'+ + '
NET 0 0
'+ '
'+ '
'+ '
'+ @@ -273,17 +273,8 @@ try { _chartInstances[id] = { cpu: null, mem: null, net: null }; if (typeof MiniChart !== 'undefined') { - var mc = new MiniChart(id+'-cpu', '#7aa2f7'); - _chartInstances[id].cpu = mc; - mc._origResize = mc.resize; - mc.resize = function(){ this._origResize(); this.canvas.width = this.canvas.width * 2; this.canvas.height = 120; this.ctx.scale(2,2); this.draw(); }; - mc.resize(); - _chartInstances[id].mem = mm; - var mm = new MiniChart(id+'-mem', '#9ece6a'); - _chartInstances[id].mem = mm; - mm._origResize = mm.resize; - mm.resize = function(){ this._origResize(); this.canvas.width = this.canvas.width * 2; this.canvas.height = 120; this.ctx.scale(2,2); this.draw(); }; - mm.resize(); + _chartInstances[id].cpu = new MiniChart(id+'-cpu', '#7aa2f7'); + _chartInstances[id].mem = new MiniChart(id+'-mem', '#9ece6a'); } if (typeof DualLineChart !== 'undefined') { _chartInstances[id].net = new DualLineChart(id+'-net', '#bb9af7', '#c0a8f0');