From 6e41d59510e89b1b7f1ff21da185231382b0065f Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 08:25:34 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E7=BD=91=E6=A0=BC=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=95=B0=E5=80=BC=E6=9B=B4=E6=96=B0=20+=20?= =?UTF-8?q?=E5=A4=87=E7=94=A8=20textContent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index e6be9dc..861f22e 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -298,6 +298,11 @@ body.querySelector('.net-up').textContent = fmtSpeed(net.tx_bytes_sec||0); var md = body.querySelector('.mem-detail-val'); if (md) md.textContent = (mem.used_gb||0).toFixed(1) + '/' + (mem.total_gb||0).toFixed(1) + ' GB'; + // 强制更新数值(备用) + var cv = body.querySelector('.cpu-val'); + var mv = body.querySelector('.mem-val'); + if (cv) cv.textContent = cpuVal.toFixed(1) + '%'; + if (mv) mv.textContent = memVal.toFixed(1) + '%'; var barCpu = body.querySelectorAll('.metric-bar-fill')[0]; var barMem = body.querySelectorAll('.metric-bar-fill')[1]; if (barCpu && barMem) {