aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-09-04 12:16:51 +0200
committerGitHub <noreply@github.com>2018-09-04 12:16:51 +0200
commit5e0a7206f59df575582f42415fc3df59b0d640cb (patch)
treeae497a804aaeda7e049d064ebddcc2ad4cf25703
parent5f3b72cfc2f729f6bd5cf1aea9720678b76b2bf3 (diff)
parent28418af920284e0ea830e2f0339efadb0660efa1 (diff)
Merge pull request #2397 from dtzWill/fix/reported-dl-size-with-callback
download: fix size reported to progress bar
-rw-r--r--src/libstore/download.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index 973fca0b1..13913d031 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -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;