summaryrefslogtreecommitdiffstats
path: root/src/libstore/download.cc
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-08-27 08:41:17 -0500
committerWill Dietz <w@wdtz.org>2018-09-03 14:12:54 -0500
commit28418af920284e0ea830e2f0339efadb0660efa1 (patch)
treeae497a804aaeda7e049d064ebddcc2ad4cf25703 /src/libstore/download.cc
parent5f3b72cfc2f729f6bd5cf1aea9720678b76b2bf3 (diff)
download: fix size reported to progress bar
Diffstat (limited to 'src/libstore/download.cc')
-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;