From bf832c11c89865a40bf4e55d751b20c6081051a9 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 08:37:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=AA=E7=89=88=E6=81=A2=E5=A4=8D=20a?= =?UTF-8?q?nimateValue=20=E6=95=B0=E5=AD=97=E8=B7=B3=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 207b80f..4857cf5 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -252,8 +252,8 @@ var netDn = card.querySelector('.net-down'); var netUp = card.querySelector('.net-up'); var mrd = card.querySelector('.mem-row-detail'); - if (cpuEl) cpuEl.textContent = cpuVal.toFixed(1) + '%'; - if (memEl) memEl.textContent = memVal.toFixed(1) + '%'; + if (cpuEl) animateValue(cpuEl, oldCpu, cpuVal, 1, '%'); + if (memEl) animateValue(memEl, oldMem, memVal, 1, '%'); if (netDn) netDn.textContent = '↓' + fmtSpeed(net.rx_bytes_sec||0); if (netUp) netUp.textContent = '↑' + fmtSpeed(net.tx_bytes_sec||0); if (mrd) mrd.textContent = (mem.used_gb||0).toFixed(1)+'/'+(mem.total_gb||0).toFixed(1)+' GB';