Skip to content

Commit

Permalink
download package manager update display progress only when there is d…
Browse files Browse the repository at this point in the history
…ownload occuring
  • Loading branch information
devnexen committed Mar 18, 2022
1 parent c083513 commit e18efdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Gui/PackageUpdateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ namespace spades {
curl.get(), CURLOPT_XFERINFOFUNCTION,
static_cast<int (*)(void *, curl_off_t, curl_off_t, curl_off_t, curl_off_t)>(
[](void *, curl_off_t total, curl_off_t downloaded, curl_off_t, curl_off_t) -> int {
SPLog("Downloaded %zd bytes/%zd bytes", downloaded, total);
if (total > 0)
SPLog("Downloaded %zd bytes/%zd bytes", downloaded, total);
return 0;
}));

Expand Down

0 comments on commit e18efdd

Please sign in to comment.