From 624a7a845c601990f5550a3cb3db38b139feb5da Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 18:20:15 +0100 Subject: feat(stats): processor and card names, both network rates large The CPU tile is labelled with /proc/cpuinfo's model name, trimmed of core counts and trademarks; the GPU tile with lspci's marketing name for the xe card. The network tile shows download and upload side by side at the same size. Co-Authored-By: Claude Opus 5.5 --- static/modules/stats.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'static/modules') diff --git a/static/modules/stats.js b/static/modules/stats.js index c76e889..e280e47 100644 --- a/static/modules/stats.js +++ b/static/modules/stats.js @@ -52,11 +52,11 @@ export default { box.textContent = ""; const g = st.gpu; box.append( - tile("CPU", `${st.cpu}%`, st.cpuTemp != null ? `${st.cpuTemp}°C` : "—"), + tile(st.cpuName ?? "CPU", `${st.cpu}%`, st.cpuTemp != null ? `${st.cpuTemp}°C` : "—"), tile("Memory", gib(st.memUsed), `/ ${gib(st.memTotal)} GiB`), - tile("GPU", g?.temp != null ? `${g.temp}°` : "—", + tile(g?.name ?? "GPU", g?.temp != null ? `${g.temp}°` : "—", g ? `${bytes(g.memUsed)} / ${bytes(g.memTotal)} GiB` : "no GPU"), - tile("Network", `↓${rate(st.net.down)}`, `↑${rate(st.net.up)}`), + tile("Network", `↓${rate(st.net.down)} ↑${rate(st.net.up)}`), ); const foot = document.createElement("div"); foot.className = "mfoot"; -- cgit v1.2.3