diff --git a/web/index.html b/web/index.html index efb1db3..52a00d3 100644 --- a/web/index.html +++ b/web/index.html @@ -146,6 +146,8 @@ function card(key, history, last_rtt) { let bar = ""; let now = Math.floor(Date.now() / 1000); let first = history[history.length - 1][0]; + let last = history[0][0]; + let min_ago = (now - last) / 60; let hrs_ago = (now - first) / 3600; for (let el of history) { bar += cell(el[0], el[1]); @@ -157,7 +159,7 @@ function card(key, history, last_rtt) { ${bar} - ^ now + ^ ~${min_ago.toFixed(0)}min ago ~${hrs_ago.toFixed(1)}h ago ^