From ed23092cd606d2e25d0addcbe9a4a75ddb4dc98b Mon Sep 17 00:00:00 2001
From: jinghui <3970260761@qq.com>
Date: Fri, 6 Nov 2026 17:16:27 +0800
Subject: [PATCH] feat: rename memory recycle button
---
app/public/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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
磁盘
网络
@@ -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=`已用 / 总共
${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=`已用 / 总共
${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='';