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 ---------- */
function running() {
return !!document.querySelector('.page-head .fa-spin');
}
function interval() {
var path = window.location.pathname, base = 10000;
@@ -268,7 +272,13 @@
return response.text();
})
.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 (window.refreshLLRHistory && (wasRunning || running())) window.refreshLLRHistory();
failures = 0;
last = Date.now();
setState('live');