-
Notifications
You must be signed in to change notification settings - Fork 203
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
kib
, mib
, etc for -o
should be powers of 1024, not 1000
#391
Comments
Oh wow that's embarrassing. I've implemented it backwards, haven't I. Good find. How did you notice that ? I think this is a recent bug only in this version, it's from when I merged the behaviour of the now redundant |
does this look right ? |
I noticed that the values of the output K was different between with
|
Noted, updated. |
Ah, it now works perfectly for me. Thank you again! |
will go out in next release |
According to Wikipedia, KiB, MiB, etc are units based on binary prefixes which are powers of 1024, but in Dust they seem to be treated as SI units which are powers of 1000.
https://github.com/bootandy/dust/blob/v1.0.0/src/display.rs#L412-L420
I'm afraid this is technically incorrect and is confusing.
For reference, commands
du
,df
andls
treatK
,M
,KiB
,MiB
, etc as powers of 1024 andKB
,MB
, etc as powers of 1000. Quoting from their--help
:I would appreciate it if this were fixed and
k
,m
, etc could be used as aliases forkib
,mib
, etc, like the above commands convention.Thanks!
The text was updated successfully, but these errors were encountered: