mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Merge pull request #2397 from dtzWill/fix/reported-dl-size-with-callback
download: fix size reported to progress bar
This commit is contained in:
commit
5e0a7206f5
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ struct CurlDownloader : public Downloader
|
|||
done = true;
|
||||
|
||||
try {
|
||||
act.progress(result.data->size(), result.data->size());
|
||||
act.progress(result.bodySize, result.bodySize);
|
||||
callback(std::move(result));
|
||||
} catch (...) {
|
||||
done = true;
|
||||
|
|
Loading…
Reference in a new issue