update include timings
This commit is contained in:
@@ -373,6 +373,16 @@
|
||||
if (ping.cert_expiry_days != null) html += `<div class="text-gray-500">Cert expiry</div><div class="text-gray-300">${ping.cert_expiry_days} days</div>`;
|
||||
if (ping.cert_issuer) html += `<div class="text-gray-500">Cert issuer</div><div class="text-gray-300">${escapeHtml(ping.cert_issuer)}</div>`;
|
||||
if (ping.response_size != null) html += `<div class="text-gray-500">Response size</div><div class="text-gray-300">${ping.response_size >= 1024 ? (ping.response_size / 1024).toFixed(1) + ' KB' : ping.response_size + ' B'}</div>`;
|
||||
if (ping.dns_ms != null || ping.tcp_ms != null || ping.tls_ms != null) {
|
||||
html += `<div class="text-gray-500">Timing</div><div class="text-gray-300">`;
|
||||
const parts = [];
|
||||
if (ping.dns_ms != null) parts.push('DNS ' + ping.dns_ms + 'ms');
|
||||
if (ping.tcp_ms != null) parts.push('TCP ' + ping.tcp_ms + 'ms');
|
||||
if (ping.tls_ms != null) parts.push('TLS ' + ping.tls_ms + 'ms');
|
||||
parts.push('HTTP ' + (ping.latency_ms || 0) + 'ms');
|
||||
html += parts.join(' / ');
|
||||
html += `</div>`;
|
||||
}
|
||||
if (ping.important) html += `<div class="text-gray-500">Important</div><div class="text-yellow-400">Yes</div>`;
|
||||
html += '</div>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user