From a69726b4dac5b8f4d529a697ecb0e6d039c9a7b4 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 14 Jun 2023 15:17:56 +0200 Subject: [PATCH] Fix typo and clarify the expired cache entries count Signed-off-by: DL6ER --- scripts/pi-hole/js/settings-system.js | 2 +- settings-system.lp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pi-hole/js/settings-system.js b/scripts/pi-hole/js/settings-system.js index 416e6193..1b106e95 100644 --- a/scripts/pi-hole/js/settings-system.js +++ b/scripts/pi-hole/js/settings-system.js @@ -162,7 +162,7 @@ function updateMetrics() { // Set metrics setMetrics(metrics, "sysinfo-"); - $("#cache-utilization").text(((100 * cacheEntries) / cacheSize).toFixed(1) + "%"); + $("#cache-utilization").text(cacheEntries.toLocaleString() + " (" + ((100 * cacheEntries) / cacheSize).toFixed(1) + "%)"); $("div[id^='sysinfo-metrics-overlay']").hide(); // Update every 10 seconds diff --git a/settings-system.lp b/settings-system.lp index 212c40dc..31647f3d 100644 --- a/settings-system.lp +++ b/settings-system.lp @@ -176,13 +176,13 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r') - DNS cache utilization: + Active cache records:   - DNS cache insertions: + Total cache insertions: