From a516cf4cad964711aa1896c410ee1fa3467f0569 Mon Sep 17 00:00:00 2001 From: Mitchell-Johnson Date: Tue, 10 Nov 2026 00:09:09 -0800 Subject: [PATCH] Top: a two-socket machine shows only its two CPUs, no combined row or wattage Co-Authored-By: Claude Opus 5.5 --- web/src/Top.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/Top.tsx b/web/src/Top.tsx index 1a039a3..eaecf5a 100644 --- a/web/src/Top.tsx +++ b/web/src/Top.tsx @@ -418,13 +418,13 @@ export default function Top() {
1 ? ' multi' : '')}>
{sockets.length > 1 ? `${sockets.length} × ` : ''}{model || 'cpu'}{pt?.cpu_mhz ? `${Math.round(pt.cpu_mhz)} MHz` : ''} - {pt?.cpu_power_w ? {pt.cpu_mhz ? ' · ' : ''}{pt.cpu_power_w < 10 ? pt.cpu_power_w.toFixed(1) : Math.round(pt.cpu_power_w)} W : null}
-
+ {pt?.cpu_power_w && sockets.length < 2 ? {pt.cpu_mhz ? ' · ' : ''}{pt.cpu_power_w < 10 ? pt.cpu_power_w.toFixed(1) : Math.round(pt.cpu_power_w)} W : null}
+ {sockets.length < 2 &&
CPU {Math.round(cpu)}% {anyTemp && <>{cpuTemp !== undefined && }{cpuTemp !== undefined ? `${Math.round(cpuTemp)}°C` : ''}} -
+
} {(sockets.length > 1 ? sockets : [undefined]).map((pk) => ( {pk !== undefined && (() => {