mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Update FTL %cpu and %mem everytime total CPU stats are updated
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -261,8 +261,6 @@ function updateFtlInfo() {
|
||||
" regex filters are enabled"
|
||||
);
|
||||
updateQueryFrequency(intl, ftl.query_frequency);
|
||||
$("#sysinfo-cpu-ftl").text("(" + ftl["%cpu"].toFixed(1) + "% used by FTL)");
|
||||
$("#sysinfo-ram-ftl").text("(" + ftl["%mem"].toFixed(1) + "% used by FTL)");
|
||||
$("#sysinfo-pid-ftl").text(ftl.pid);
|
||||
const startdate = moment()
|
||||
.subtract(ftl.uptime, "milliseconds")
|
||||
@@ -368,6 +366,9 @@ function updateSystemInfo() {
|
||||
" processes"
|
||||
);
|
||||
|
||||
$("#sysinfo-cpu-ftl").text("(" + system.ftl["%cpu"].toFixed(1) + "% used by FTL)");
|
||||
$("#sysinfo-ram-ftl").text("(" + system.ftl["%mem"].toFixed(1) + "% used by FTL)");
|
||||
|
||||
const startdate = moment()
|
||||
.subtract(system.uptime, "seconds")
|
||||
.format("dddd, MMMM Do YYYY, HH:mm:ss");
|
||||
|
||||
Reference in New Issue
Block a user