Live updates: keep the LLR history graph current

This commit is contained in:
claude committed 2026-10-11 17:49:31 +02:00
1 parent deb68caa64
commit d5cea13fd6
1 file changed
+10
+10
View File
@@ -207,6 +207,10 @@
/* ---------- Polling ---------- */ /* ---------- Polling ---------- */
function running() {
return !!document.querySelector('.page-head .fa-spin');
}
function interval() { function interval() {
var path = window.location.pathname, base = 10000; var path = window.location.pathname, base = 10000;
@@ -268,7 +272,13 @@
return response.text(); return response.text();
}) })
.then(function (html) { .then(function (html) {
// A test that has just finished still has a last data point to draw
var wasRunning = running();
if (!apply(html)) throw new Error('no content'); if (!apply(html)) throw new Error('no content');
if (window.refreshLLRHistory && (wasRunning || running())) window.refreshLLRHistory();
failures = 0; failures = 0;
last = Date.now(); last = Date.now();
setState('live'); setState('live');