Show total CPU % on the settings / system info page

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2025-02-27 05:58:44 +01:00
parent 714b135afa
commit 98d162fa01

View File

@@ -377,16 +377,14 @@ function updateSystemInfo() {
system.cpu.nprocs +
" cores and running " +
system.procs +
" processes"
" processes " +
(system.cpu.load.raw[0] > system.cpu.nprocs
? " (load is higher than the number of cores)"
: "")
);
$("#sysinfo-cpu").html(
"Load: " +
system.cpu.load.raw[0].toFixed(2) +
"&nbsp;/&nbsp;" +
system.cpu.load.raw[1].toFixed(2) +
"&nbsp;/&nbsp;" +
system.cpu.load.raw[2].toFixed(2) +
" on " +
system.cpu["%cpu"].toFixed(1) +
"% on " +
system.cpu.nprocs +
" cores running " +
system.procs +