diff --git a/app/modules/crawler/lib/sync/ChunkGetter.ts b/app/modules/crawler/lib/sync/ChunkGetter.ts index ed9c01ccef09a6c5b45a4ef9c7d8ec49079d46e4..91dca6501b1d4a73baa16a681301a1a76671cee2 100644 --- a/app/modules/crawler/lib/sync/ChunkGetter.ts +++ b/app/modules/crawler/lib/sync/ChunkGetter.ts @@ -200,6 +200,8 @@ export class ChunkGetter { })) this.writtenChunks++ this.watcher.storagePercent(Math.round(this.writtenChunks / this.numberOfChunksToDownload * 100)); + } else { + this.watcher.storagePercent(parseInt((this.downloadedChunks / this.numberOfChunksToDownload * 100).toFixed(0))) } // Returns a promise of file content