Fix: Only include running nodes when calculating total progress

This commit is contained in:
Simon Cordt
2025-09-28 06:24:18 +02:00
parent 0b0cce40e3
commit cc15fe7b87
+1
View File
@@ -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;