Skip to content

Commit

Permalink
Merge pull request #1871 from pi-hole/tweak/non_cached_replies
Browse files Browse the repository at this point in the history
Add BLOB reply type
  • Loading branch information
PromoFaux authored Sep 11, 2021
2 parents 293bc97 + b9645ff commit 42c4ed8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/pi-hole/js/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var replyTypes = [
"upstream error",
"DNSSEC",
"NONE",
"BLOB",
];
var colTypes = ["time", "query type", "domain", "client", "status", "reply type"];

Expand Down Expand Up @@ -265,7 +266,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)");
}
Expand Down

0 comments on commit 42c4ed8

Please sign in to comment.