mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 21:10:14 +02:00
web/ProcessingQueueItem: account for file sizes from completed workers
This commit is contained in:
parent
788098cc88
commit
7732188870
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user