From 578477148bccfbc4d436082fed53ec69b99e4370 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 2 Jun 2020 13:21:17 +0200 Subject: [PATCH] On fast machines, cache replies can be served within less than 100 nanoseconds. The query log should show "(0.0ms)" in this case instead of hiding the value altogether. Signed-off-by: DL6ER --- scripts/pi-hole/js/queries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 0348504e..e6ee5347 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -351,7 +351,7 @@ $(function () { $("td:eq(5)", row).html(replytext); - if (data.length > 7 && data[7] > 0) { + if (data.length > 7) { var content = $("td:eq(5)", row).html(); $("td:eq(5)", row).html(content + " (" + (0.1 * data[7]).toFixed(1) + "ms)"); }