log.js: added support for response rtt.

This commit is contained in:
Shreyas Zare
2024-12-21 15:57:18 +05:30
parent 2c9cb1ebe4
commit d0fb993c32

View File

@@ -334,7 +334,7 @@ function queryLogs(pageNumber) {
moment(responseJSON.response.entries[i].timestamp).local().format("YYYY-MM-DD HH:mm:ss") + "</td><td>" + moment(responseJSON.response.entries[i].timestamp).local().format("YYYY-MM-DD HH:mm:ss") + "</td><td>" +
responseJSON.response.entries[i].clientIpAddress + "</td><td>" + responseJSON.response.entries[i].clientIpAddress + "</td><td>" +
responseJSON.response.entries[i].protocol + "</td><td>" + responseJSON.response.entries[i].protocol + "</td><td>" +
responseJSON.response.entries[i].responseType + "</td><td>" + responseJSON.response.entries[i].responseType + (responseJSON.response.entries[i].responseRtt == null ? "" : "<div style=\"font-size: 12px;\">(" + responseJSON.response.entries[i].responseRtt.toFixed(2) + " ms)</div>") + "</td><td>" +
responseJSON.response.entries[i].rcode + "</td><td style=\"word-break: break-all;\">" + responseJSON.response.entries[i].rcode + "</td><td style=\"word-break: break-all;\">" +
htmlEncode(responseJSON.response.entries[i].qname == "" ? "." : responseJSON.response.entries[i].qname) + "</td><td>" + htmlEncode(responseJSON.response.entries[i].qname == "" ? "." : responseJSON.response.entries[i].qname) + "</td><td>" +
(responseJSON.response.entries[i].qtype == null ? "" : responseJSON.response.entries[i].qtype) + "</td><td>" + (responseJSON.response.entries[i].qtype == null ? "" : responseJSON.response.entries[i].qtype) + "</td><td>" +