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:
DL6ER
2018-04-01 16:39:54 +02:00
parent 517fa24fe3
commit dca374bfcd

View File

@@ -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>>" +