aboutsummaryrefslogtreecommitdiffstats
path: root/static/modules
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 18:20:15 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 18:20:15 +0100
commit624a7a845c601990f5550a3cb3db38b139feb5da (patch)
treeeeadd266f1cfca2dbcbac4ad4743c61e17f84d86 /static/modules
parentb22003b6a86f16f3de6f77093fb94d8b89203dc2 (diff)
downloaddeck-it-624a7a845c601990f5550a3cb3db38b139feb5da.tar.gz
deck-it-624a7a845c601990f5550a3cb3db38b139feb5da.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'static/modules')
-rw-r--r--static/modules/stats.js6
1 files changed, 3 insertions, 3 deletions
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";