web/ProcessingQueueItem: account for file sizes from completed workers

This commit is contained in:
wukko 2025-05-22 23:48:12 +06:00
parent 788098cc88
commit 7732188870
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -91,7 +91,9 @@
.map(t => t.progress) .map(t => t.progress)
.filter(p => p); .filter(p => p);
const totalSize = progresses.reduce((s, p) => s + (p?.size ?? 0), 0); const totalSize =
progresses.reduce((s, p) => s + (p?.size ?? 0), 0) +
info.pipelineResults.reduce((s, p) => s + (p?.size ?? 0), 0);
if (runningWorkers.length && totalSize > 0) { if (runningWorkers.length && totalSize > 0) {
const formattedSize = formatFileSize(totalSize); const formattedSize = formatFileSize(totalSize);