From c6f5c2ee35d33cbc4c9ff8f58a402d3f9e5741e7 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 25 May 2018 09:53:30 +0200 Subject: [PATCH] Display new dns_queries_all_types value (if available) Signed-off-by: DL6ER --- index.php | 2 +- scripts/pi-hole/js/index.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 63583336..33d08c5e 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@
-
+

Total queries (- clients)

---

diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 4606dd48..72fd10f5 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -739,6 +739,11 @@ function updateSummaryData(runOnce) { $("span#" + today).addClass("glow"); }); + if(data.hasOwnProperty("dns_queries_all_types")) + { + $("#total_queries").prop("title", "only A + AAAA queries (" + data["dns_queries_all_types"] + " in total)"); + } + window.setTimeout(function() { ["ads_blocked_today", "dns_queries_today", "domains_being_blocked", "ads_percentage_today", "unique_clients"].forEach(function(header, idx) { var textData = (idx === 3 && data[header] !== "to") ? data[header] + "%" : data[header];