From f417f8b01a8232a2bc415aa4eadc0db7ac9e83e6 Mon Sep 17 00:00:00 2001 From: 3970260761 <3970260761@qq.com> Date: Sun, 8 Nov 2026 00:36:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E9=A1=B5=E7=AD=BE?= =?UTF-8?q?=E5=9B=9E=E6=9D=A5=E6=97=B6=E6=80=A7=E8=83=BD=E5=9D=97=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E6=98=BE=E7=A4=BA=EF=BC=88=E9=98=B2=E9=97=AA=E5=91=BD?= =?UTF-8?q?=E4=B8=AD=E4=B9=9F=E6=81=A2=E5=A4=8Ddisplay=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 93c1d11..3aeb4ed 100644 --- a/public/index.html +++ b/public/index.html @@ -107,7 +107,7 @@ async function cpuAdvise(){const el=document.getElementById('cpuadvise');const n async function kill(pid,name){if(!confirm('结束进程 '+name+' (PID '+pid+') ?'))return;const r=await fetch('/api/kill',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({pid})});const j=await r.json();alert(j.ok?'已发送结束信号':('失败: '+j.error));load(true)} const PERF_DESC={powersave:'省电模式:限制睿频、能效优先,适合7×24待机/下载机,功耗噪音最低',balanced:'平衡模式:按负载自动升降频,日常使用推荐,性能功耗兼顾',performance:'高性能模式:火力全开,适合转码/编译/虚拟机等重负载,功耗温度最高'}; let perfCur=''; -async function cpuPerf(){const el=document.getElementById('cpuperf');try{const r=await fetch('/api/cpu/perf');const j=await r.json();const m=j.mode||j.saved||'balanced';const key=m+'|'+(j.governor||'')+'|'+(j.epp||'');if(perfCur===key&&el.innerHTML)return;perfCur=key;el.style.display='';el.innerHTML=`