From cc15fe7b87db3a3b0356df1b249b04067b7314df Mon Sep 17 00:00:00 2001 From: Simon Cordt Date: Sun, 28 Sep 2025 06:24:18 +0200 Subject: [PATCH] Fix: Only include running nodes when calculating total progress --- web/js/pqueue.format.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/js/pqueue.format.js b/web/js/pqueue.format.js index 3a770e0..a187b47 100644 --- a/web/js/pqueue.format.js +++ b/web/js/pqueue.format.js @@ -8,6 +8,7 @@ let totalMax = 0; let totalVal = 0; Object.values(nodes ?? {}).forEach((st) => { + if (st.state !== 'running') return; const max = Math.max(1, Number(st?.max ?? 1)); const val = Math.max(0, Math.min(Number(st?.value ?? 0), max)); totalMax += max;