-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve human readable output #459
base: master
Are you sure you want to change the base?
Conversation
67d6240
to
42238c9
Compare
As there is a new pre-release... Can I have a quick feedback and state on this? |
The current release only has bugfixes in the main code (it's only the adjunct scripts & manpages that got enhancements). I'm very cautious in making output-affecting changing, but will be giving this a closer look. |
I can understand you are cautious about making output-affecting changing, guess this is due to breaking scripts that expect specific output? |
@eworm-de could you add a description of the before and after of what this change does? Needs a bit more context than "improve" :-) |
The commit messages have the details. Are you missing something there or just here in the pull request? |
933dc1f
to
75ea671
Compare
This is the output of
|
0ca5744
to
6abcd9b
Compare
Just added another commit:
|
a20c3e6
to
cb0b932
Compare
I still stand by my point: This is about human readable output. We should not be worried too much about compatibility with parsers. |
Any news on this? Does it help if I split this across several pull requests? |
9bcdb1b
to
050399c
Compare
51aad3d
to
46d2d98
Compare
This drops a lot of `else if` blocks and extends units by "E", "Z" & "Y".
Let's lower precision for huge numbers. The output used to be: 3.45M -> 46.73M -> 523.11M -> 1.24G -> ... With this change the code always gives the three most significant digits: 3.45M -> 46.7M -> 523M -> 1.24G -> ...
... just make sure no precision is added.
Let's also simplify the code for rate in progress, and benefit from same functionality.
Calculate in a loop, use dynamic precision.