From f7fb088b2f0870a691d5221b82df27e92aa8c26b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 10 Nov 2025 07:55:15 +0100 Subject: [PATCH] fixup expand to exabytes since 8192 is rather shown as 8.0 of next unit --- lib/progress.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/progress.c b/lib/progress.c index d4c27cce69..910c63c113 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -67,8 +67,9 @@ static void time2str(char *r, curl_off_t seconds) Add suffix k, M, G when suitable... */ static char *max6data(curl_off_t bytes, char *max6) { - /* a signed 64-bit value is 8192 petabytes maximum */ - const char unit[] = { 'k', 'M', 'G', 'T', 'P', 0 }; + /* a signed 64-bit value is 8192 petabytes maximum, shown as + 8.0E (exabytes)*/ + const char unit[] = { 'k', 'M', 'G', 'T', 'P', 'E', 0 }; int k = 0; if(bytes < 100000) { curl_msnprintf(max6, 7, "%6" CURL_FORMAT_CURL_OFF_T, bytes);