mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:21:41 +03:00
tool_progress: fix < 10000 output
Follow-up to e49698925c
Closes #18826
This commit is contained in:
parent
3b583ab7d7
commit
4e2edde102
1 changed files with 3 additions and 1 deletions
|
|
@ -34,8 +34,10 @@ static char *max5data(curl_off_t bytes, char *max5)
|
|||
/* a signed 64-bit value is 8192 petabytes maximum */
|
||||
const char unit[] = { 'k', 'M', 'G', 'T', 'P', 0 };
|
||||
int k = 0;
|
||||
if(bytes < 100000)
|
||||
if(bytes < 100000) {
|
||||
msnprintf(max5, 6, "%5" CURL_FORMAT_CURL_OFF_T, bytes);
|
||||
return max5;
|
||||
}
|
||||
|
||||
do {
|
||||
curl_off_t nbytes = bytes / 1024;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue