mirror of
https://github.com/pi-hole/web.git
synced 2025-12-23 12:18:26 +00:00
Simplify NODATA reply type (no need to show A/AAAA here as we show that in the second column) and add reply time if available
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -224,7 +224,7 @@ $(document).ready(function() {
|
||||
}
|
||||
else if (data[6] === "1")
|
||||
{
|
||||
$("td:eq(5)", row).html("NODATA-" + data[1]);
|
||||
$("td:eq(5)", row).html("NODATA");
|
||||
}
|
||||
else if (data[6] === "2")
|
||||
{
|
||||
@@ -248,6 +248,11 @@ $(document).ready(function() {
|
||||
$("td:eq(5)", row).css("color","black");
|
||||
$("td:eq(5)", row).html("-");
|
||||
}
|
||||
if(data.length > 7 && data[7] > 0)
|
||||
{
|
||||
var content = $("td:eq(5)", row).html();
|
||||
$("td:eq(5)", row).html(content + " (" + (0.1*data[7]).toFixed(1)+"ms)");
|
||||
}
|
||||
|
||||
},
|
||||
dom: "<'row'<'col-sm-12'f>>" +
|
||||
|
||||
Reference in New Issue
Block a user