mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #182] Allow decimal sizes (1k = 1000 instead of 1024) #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eugenesvk on GitHub (Sep 21, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/182
Currently all sizes are displayed with a binary prefix (1k=1024=2¹⁰)
Please add an option to use decimal prefixes (1k=1000=10³)
Thanks!
@bootandy commented on GitHub (Sep 24, 2021):
That doesn't strike me as that useful, what's your usecase?
However du does allow something similar with the -B blocksize, so I'm happy to leave this open if you want to work on it.
@eugenesvk commented on GitHub (Sep 24, 2021):
the usecase is the same as yours — getting size information about your disk, it's just that I don't find the 1024 representation useful, and it also doesn't match my file manager's config
@danie-dejager commented on GitHub (Oct 19, 2021):
@bootandy The current output could be improved to better distinguish between ISO and binary as you are currently printing binary values and not ISO. df has similar output (G) due to the historic limitation on screen real-estate.
Should (Could optionally) dust print
Giinstead?@bootandy commented on GitHub (Oct 20, 2021):
Ok, there seems to be some interest in this so I'll look adding a flag to output ISO values as well as binary.
df:
-H, --si print sizes in powers of 1000 (e.g., 1.1G)