aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-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";