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 <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-06-02 13:21:17 +02:00
parent 814eca9a0f
commit 578477148b

View File

@@ -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)");
}