From 487ac384351cafb94fe451b5ee94bd3c481d9611 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 27 Aug 2021 15:13:55 +0200 Subject: [PATCH 1/2] Show response time only when reply is not N/A Signed-off-by: DL6ER --- scripts/pi-hole/js/queries.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 544058043..e926ad495 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -275,7 +275,8 @@ $(function () { $("td:eq(5)", row).html(replytext); - if (data.length > 7) { + // Show response time only when reply is not N/A + if (data.length > 7 && replyid !== 0) { var content = $("td:eq(5)", row).html(); $("td:eq(5)", row).html(content + " (" + (0.1 * data[7]).toFixed(1) + "ms)"); } From b9645ff6c57a7532b9833efe83f0d7119eac2175 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 27 Aug 2021 15:14:33 +0200 Subject: [PATCH 2/2] Add new BLOB reply type Signed-off-by: DL6ER --- scripts/pi-hole/js/queries.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index e926ad495..44a7c2ea5 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -24,6 +24,7 @@ var replyTypes = [ "upstream error", "DNSSEC", "NONE", + "BLOB", ]; var colTypes = ["time", "query type", "domain", "client", "status", "reply type"];