From 28ce85c2d281b930b4a1e4ae80a0f3bbfaad3dc1 Mon Sep 17 00:00:00 2001 From: MCHost Date: Mon, 14 Jul 2025 19:41:13 -0400 Subject: [PATCH] fix CPU Display to show Real Core Usage --- system-status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system-status.js b/system-status.js index c8c4202..204e247 100644 --- a/system-status.js +++ b/system-status.js @@ -80,10 +80,10 @@ async function getDockerStats() { const now = Date.now(); const timeDiffMs = now - prev.time; - // Calculate CPU usage as percentage relative to the 6 cores limit + // Calculate CPU usage as percentage relative to total host cores let cpuUsage = 0; if (systemDelta > 0 && timeDiffMs > 0) { - cpuUsage = (cpuDelta / systemDelta) * (TOTAL_CORES / 6) * 100; + cpuUsage = (cpuDelta / systemDelta) * TOTAL_CORES * 100; } // Memory usage in GB