curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Precision in the progress meter

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 10 Nov 2025 11:24:52 +0100 (CET)

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-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-11-10