Compare commits

..

No commits in common. "1ef21891f1485706ca60339008b5122f7e1efc2c" and "66eff8f7bab803ce3fc1d3ed9c05adf58738f620" have entirely different histories.

View file

@ -79,6 +79,7 @@
<p>%%DESCRIPTION%%</p> <p>%%DESCRIPTION%%</p>
</div> </div>
<hr class="color"/> <hr class="color"/>
<small style="display: block" class="rev">now --&gt;</small>
<main id="uppe-rs-content"> <main id="uppe-rs-content">
@ -100,9 +101,6 @@ function cell(timestamp, rtt) {
function card(key, history, last_rtt) { function card(key, history, last_rtt) {
let bar = ""; let bar = "";
let now = Math.floor(Date.now() / 1000);
let first = history[0][0];
let hrs_ago = (now - first) / 3600;
for (let el of history) { for (let el of history) {
bar += cell(el[0], el[1]); bar += cell(el[0], el[1]);
} }
@ -110,7 +108,6 @@ function card(key, history, last_rtt) {
<h3 class="mt-0">${key} <code class="color">${last_rtt ? last_rtt + 'ms' : 'DOWN'}</code></h3> <h3 class="mt-0">${key} <code class="color">${last_rtt ? last_rtt + 'ms' : 'DOWN'}</code></h3>
<div class="box"> <div class="box">
${bar} ${bar}
<p class="ma-0"><small>^ ~${hrs_ago.toFixed(1)}h ago</small></p>
</div> </div>
</div>`; </div>`;
} }