fix: 横版恢复 animateValue 数字跳动
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user