From d5cea13fd6f59a9113995f908ac67006c15a76f3 Mon Sep 17 00:00:00 2001 From: claude Date: Sun, 11 Oct 2026 17:49:31 +0200 Subject: [PATCH] Live updates: keep the LLR history graph current --- OpenBench/static/live.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OpenBench/static/live.js b/OpenBench/static/live.js index f31beed..2c0bc29 100644 --- a/OpenBench/static/live.js +++ b/OpenBench/static/live.js @@ -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');