From 507fde4edf2b118219f8a194fad741e20196f5a7 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Mon, 6 Oct 2025 18:55:04 -0300 Subject: [PATCH] Add CPU usage percentage to the Load tooltip Signed-off-by: RD WebDesign --- scripts/js/footer.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/js/footer.js b/scripts/js/footer.js index 2eee803c..a26b2740 100644 --- a/scripts/js/footer.js +++ b/scripts/js/footer.js @@ -344,15 +344,17 @@ function updateSystemInfo() { ); $("#cpu").prop( "title", - "Load averages for the past 1, 5, and 15 minutes\non a system with " + + "CPU usage: " + + system.cpu["%cpu"].toFixed(1) + + "%\nLoad averages for the past 1, 5, and 15 minutes\non a system with " + system.cpu.nprocs + " core" + (system.cpu.nprocs > 1 ? "s" : "") + " running " + system.procs + - " processes " + + " processes" + (system.cpu.load.raw[0] > system.cpu.nprocs - ? " (load is higher than the number of cores)" + ? "\n(load is higher than the number of cores)" : "") ); $("#sysinfo-cpu").text(