Skip to content

Commit 19f4651

Browse files
committed
fix status being behind
1 parent fc227f1 commit 19f4651

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

status.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
.dot-down { background:var(--red); }
8383
.dot-part { background:var(--yellow); }
8484
.uptime-percent { margin-left:auto; font-size:.75rem; font-weight:600; letter-spacing:.5px; color:var(--text-dim); }
85-
.bar-wrapper { display:flex; flex-wrap:nowrap; gap:3px; align-items:center; }
86-
.square-bar { display:grid; grid-auto-flow:column; grid-auto-columns:10px; gap:3px; width:100%; overflow:hidden; }
87-
.sq { width:10px; height:22px; border-radius:2px; background:var(--panel-alt); position:relative; cursor:help; transition:var(--transition); }
85+
.bar-wrapper { display:flex; flex-wrap:nowrap; gap:3px; align-items:center; overflow-x:auto; }
86+
.square-bar { display:grid; grid-auto-flow:column; grid-auto-columns:7px; gap:3px; width:100%; overflow:visible; }
87+
.sq { width:8px; height:22px; border-radius:2px; background:var(--panel-alt); position:relative; cursor:help; transition:var(--transition); z-index:1; }
8888
.sq.ok { background:var(--green-alt); }
8989
.sq.down { background:var(--red); }
9090
.sq.part { background:var(--yellow); }
@@ -212,7 +212,7 @@ <h2>Platform Metrics</h2>
212212
tr.innerHTML = `<td>${new Date(d.timestamp).toLocaleString()}</td><td>${d.error ? d.error : (d.status?d.status.status:'?')}</td>`; tableBody.appendChild(tr);
213213
});
214214
const sorted = data.slice().sort((a,b)=> a.timestamp - b.timestamp);
215-
const windowEntries = sorted.slice(-90);
215+
const windowEntries = sorted.slice(-97);
216216
const relevant = windowEntries.filter(e=> (e.status && typeof e.status.status === 'string') || e.error);
217217
const okEntries = relevant.filter(e=> e.status && e.status.status === 'ok');
218218
const uptimePercent = relevant.length ? (okEntries.length / relevant.length) * 100 : 0;

0 commit comments

Comments
 (0)