← Commit list

4e2edde102

Daniel Stenberg
Daniel Stenberg
2025-10-03
FAILED Duration: 160s

Subject

tool_progress: fix < 10000 output

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_progress.c+3 -1
@@ -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;