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;