From 28418af920284e0ea830e2f0339efadb0660efa1 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 27 Aug 2018 08:41:17 -0500 Subject: download: fix size reported to progress bar --- src/libstore/download.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3