1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #1311 from E5ten/patch-2

Fix du --apparent-size on ext4 and MacOS
This commit is contained in:
Alex Lyon 2018-10-29 22:19:15 -07:00 committed by GitHub
commit b8dbefcb71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,7 +394,7 @@ Try '{} --help' for more information.",
let len = len.unwrap();
for (index, stat) in iter.enumerate() {
let size = if matches.opt_present("apparent-size") {
stat.nlink * stat.size
stat.size
} else if matches.opt_present("b") {
stat.size
} else {