about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-08-27T13·41-0500
committerWill Dietz <w@wdtz.org>2018-09-03T19·12-0500
commit28418af920284e0ea830e2f0339efadb0660efa1 (patch)
treeae497a804aaeda7e049d064ebddcc2ad4cf25703 /src/libstore
parent5f3b72cfc2f729f6bd5cf1aea9720678b76b2bf3 (diff)
download: fix size reported to progress bar
Diffstat (limited to 'src/libstore')
-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 973fca0b130f..13913d031daa 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;