diff --git a/app/public/index.html b/app/public/index.html index 555cd07..353907d 100644 --- a/app/public/index.html +++ b/app/public/index.html @@ -53,7 +53,7 @@ button.refresh{background:#20a53a;color:#fff;border:none;border-radius:3px;paddi
磁盘
网络
-v1.2.6 +v1.2.8 资享导航站 开源地址
@@ -77,7 +77,7 @@ document.querySelectorAll('.tab').forEach(t=>t.onclick=()=>{document.querySelect function fmtB(b){if(b==null)return '-';const u=['B','KB','MB','GB','TB'];let i=0;while(b>=1024&&i<4){b/=1024;i++}return b.toFixed(b>=100?0:1)+u[i]} function fmtR(b){return fmtB(b)+'/s'} function esc(s){return String(s==null?'':s).replace(/&/g,'&').replace(/`${esc(p.name)}${p.cpu}${p.threads}${p.pid}${esc(p.desc)}${esc(p.user)}${p.status}`).join(''); }else if(cur==='mem'){ -S.innerHTML=`
内存占用
${j.percent}%
已用 / 总共
${fmtB(j.used)} / ${fmtB(j.total)}
可用 / Swap
${fmtB(j.available)} / ${fmtB(j.swap_used)}/${fmtB(j.swap_total)} (Swap ${j.swap_percent||0}%)
操作
`; +S.innerHTML=`
内存占用
${j.percent}%
已用 / 总共
${fmtB(j.used)} / ${fmtB(j.total)}
可用 / Swap
${fmtB(j.available)} / ${fmtB(j.swap_used)}/${fmtB(j.swap_total)} (Swap ${j.swap_percent||0}%)
操作
`; const D=j.detail||{},H2=j.hw||{},DM=H2.dimms||[]; const row=(k,v)=>`${k} ${v}`; document.getElementById('meminfo').style.display='';