Precision in the progress meter

Daniel Stenberg via curl-library <[email protected]> Mon, 10 Nov 2025 11:24:52 +0100 (CET)
Newsgroups gmane.comp.web.curl.library,gmane.comp.web.curl.general
Message-ID <[email protected]>
Hi friends!

(Posted to both lists for posterity, but strictly speaking this is a libcurl 
change so I prefer to have follow-ups there but I post on curl-users too since 
curl tool users are affected as well.)

In curl 8.17.0 I modified the standard progress meter display to use one more 
character per size shown. Six instead of the previous five. And it would use 
decimals if the number is less than 1000.

- 999999
- 99999k
- 99999M
- 999.1G

etc

I did this because I thought added precision would be good. I was probably 
wrong. The added characters unfortunately made the numbers harder to read.

So this is a call for everyone: what do you think?

I'm trying to iprove the situation going forward by limiting the numbers 
slightly differently:

Max 5 digits without a unit and only display numbers less than 1000 with units 
but then with a decimal (using a total of 6 characters):

- 99999
- 999.9k
- 123.4M

PR for this: https://github.com/curl/curl/pull/19433

-- 

  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html