mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Merge pull request #1871 from pi-hole/tweak/non_cached_replies
Add BLOB reply type
This commit is contained in:
@@ -24,6 +24,7 @@ var replyTypes = [
|
||||
"upstream error",
|
||||
"DNSSEC",
|
||||
"NONE",
|
||||
"BLOB",
|
||||
];
|
||||
var colTypes = ["time", "query type", "domain", "client", "status", "reply type"];
|
||||
|
||||
@@ -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)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user