mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 23:12:44 +01:00
download: fix size reported to progress bar
(cherry picked from commit 28418af920)
This commit is contained in:
parent
c0c0c6b7cd
commit
3f20275fa0
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ struct CurlDownloader : public Downloader
|
||||||
done = true;
|
done = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
act.progress(result.data->size(), result.data->size());
|
act.progress(result.bodySize, result.bodySize);
|
||||||
callback(std::move(result));
|
callback(std::move(result));
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
done = true;
|
done = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue