feat: live-updating timestamps via data-ts attribute

This commit is contained in:
M1
2026-03-16 16:10:04 +04:00
parent 2bfe3a0272
commit 1e95149456
2 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -164,7 +164,7 @@
: '<span class="text-gray-500">—</span>';
document.getElementById('stat-latency').textContent = avgLatency != null ? `${avgLatency}ms` : '—';
document.getElementById('stat-uptime').textContent = uptime != null ? `${uptime}%` : '—';
document.getElementById('stat-last').textContent = lastPing ? timeAgo(lastPing.checked_at) : '—';
document.getElementById('stat-last').innerHTML = lastPing ? timeAgo(lastPing.checked_at) : '—';
// Latency chart
renderLatencyChart(results.slice().reverse());