Skip to content
Snippets Groups Projects
Commit 4a91912f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] sync: set storage watcher to download's level if cautious mode

parent 16b44b08
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment