You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
curl progress meter human-readable unit breakage #19431
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 16097M 0 96166k 0 0 17384k 0 0:15:48 0:00:05 0:15:43 20627k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
1 15.7G 1 228M 0 0 12.2M 0 0:21:55 0:00:18 0:21:37 12.7M
It now uses 6 characters instead of 5 before - which allows for a higher precision. Still with suitable suffixes.
I like the idea of increased precision, but not at the expense of default readability, I'd rather see it implemented as an option rather than modifying and forcing the default, which makes me feel like something is broken.
I think the consensus is 999.9 or 999.99 etc.
You could increase the precision after the decimal point instead of the number of digits before the decimal point.
Also, if we're going to talk about precision, we'd better be clear about which unit prefix we're using, we appear to be using SI (Decimal/1000), but we actually seem to be calculating values in IEC (Binary/1024).
In other words, if we still use 'k', 'M', 'G', 'T', 'P' as units, please use Decimal/1000 to calculate.
If we still want to use Binary/1024 for calculation, please use 'Ki', 'Mi', 'Gi', 'Ti', 'Pi' instead.
It would also be nice to have an option allowing explicit use of SI or IEC units. Remember never to use JEDEC.
--unit-prefix-iec (use standard `IEC` prefixes, default: `SI` prefixes)
Upon closer inspection, the precision improvement of the latter two is actually very limited, and the part where the precision is improved happens to be the part that is difficult to read.
Activity
bagder commentedon Nov 9, 2025
It now uses 6 characters instead of 5 before - which allows for a higher precision. Still with suitable suffixes.
jay commentedon Nov 9, 2025
The older does look easier to read.
bagder commentedon Nov 9, 2025
Maybe 9999 should be the largest number to show
jay commentedon Nov 9, 2025
That would be better, however 6.9M is easier to read than 6789k in my opinion
bagder commentedon Nov 9, 2025
Sure, and
7Mis even easier. I'm not sure that is what we want though.Fd929c2CE5fA commentedon Nov 9, 2025
I like the idea of increased precision, but not at the expense of default readability, I'd rather see it implemented as an option rather than modifying and forcing the default, which makes me feel like something is broken.
Same for me.
I think the consensus is
999.9or999.99etc.You could increase the precision after the decimal point instead of the number of digits before the decimal point.
For example: 15.719G ✅, 16097M 👎
progress: only show "raw" numbers up to 9999
Fd929c2CE5fA commentedon Nov 9, 2025
Also, if we're going to talk about precision, we'd better be clear about which unit prefix we're using, we appear to be using
SI(Decimal/1000), but we actually seem to be calculating values inIEC(Binary/1024).In other words, if we still use 'k', 'M', 'G', 'T', 'P' as units, please use
Decimal/1000to calculate.If we still want to use
Binary/1024for calculation, please use 'Ki', 'Mi', 'Gi', 'Ti', 'Pi' instead.It would also be nice to have an option allowing explicit use of
SIorIECunits. Remember never to useJEDEC.https://en.wikipedia.org/wiki/Binary_prefix
https://en.wikipedia.org/wiki/SI_prefix
https://en.wikipedia.org/wiki/IEC_80000-13
Fd929c2CE5fA commentedon Nov 10, 2025
From a readability perspective, we should never use integers > 999
In other words, for a fixed 6 characters we could able have:
For comparison, also 6 characters:
5 characters
Upon closer inspection, the precision improvement of the latter two is actually very limited, and the part where the precision is improved happens to be the part that is difficult to read.
progress: show fewer digits