1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-17 02:31:02 +00:00
uutils-coreutils/src/uu/du
Michael Vogt 61e0450c66 du: give -h output the same precision as GNU coreutils
When printing the `du -h` output GNU coreutils does autoscale
the size, e.g.
```
$ truncate -s12M a
$ truncate -s8500 b
$ truncate -s133456345 c
$ truncate -s56990456345 d
$ du -h --apparent-size a b c d
12M	a
8,4K	b
128M	c
54G	d
```
Align our version to do the same by sharing the code with `ls`.

Closes: #6159
2024-04-24 16:53:08 +02:00
..
src du: give -h output the same precision as GNU coreutils 2024-04-24 16:53:08 +02:00
Cargo.toml du: give -h output the same precision as GNU coreutils 2024-04-24 16:53:08 +02:00
du.md parent 9d5dc500e6 2023-03-04 18:43:40 +01:00
LICENSE Include license text in all published crates 2022-03-05 21:21:46 +01:00