mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Show total CPU % on the settings / system info page
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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) +
|
||||
" / " +
|
||||
system.cpu.load.raw[1].toFixed(2) +
|
||||
" / " +
|
||||
system.cpu.load.raw[2].toFixed(2) +
|
||||
" on " +
|
||||
system.cpu["%cpu"].toFixed(1) +
|
||||
"% on " +
|
||||
system.cpu.nprocs +
|
||||
" cores running " +
|
||||
system.procs +
|
||||
|
||||
Reference in New Issue
Block a user