Skip to content

Commit

Permalink
Merge pull request #1002 from devnexen/download_data_adjust
Browse files Browse the repository at this point in the history
Display the package manager download progress only if the progress information is available
  • Loading branch information
yvt authored Apr 10, 2022
2 parents 826ca93 + e18efdd commit e6d1856
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 e6d1856

Please sign in to comment.