Skip to content
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

Add an option to graph/json/list with base 1000 #309

Open
odoucet opened this issue Feb 7, 2023 · 4 comments
Open

Add an option to graph/json/list with base 1000 #309

odoucet opened this issue Feb 7, 2023 · 4 comments

Comments

@odoucet
Copy link

odoucet commented Feb 7, 2023

on source code, base 1024 is used. It would be useful in some situation to use a base 1000.
Add a flag on command line for this.
I'm not very used to C language. Is it easy to do ?

@l8gravely
Copy link
Collaborator

l8gravely commented Feb 7, 2023 via email

@odoucet
Copy link
Author

odoucet commented Feb 8, 2023

As you know, hard drives manufacturer are selling their products based on base 1000 calculation. Allow to compare disk usage with the same base can, in very specific cases, be useful.

Also, as all calculation is now done in base 1024, should we show "82.1Gi" and not "82.1G" ? (cf IEC 60027-2 A.2 and ISO/IEC 80000:13-2008)
https://en.wikipedia.org/wiki/Binary_prefix#Adoption_by_IEC,_NIST_and_ISO

@l8gravely
Copy link
Collaborator

l8gravely commented Feb 8, 2023 via email

@zevv
Copy link
Owner

zevv commented Feb 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants