From 13e57616b41fc3d5fd789bcc95dc46a239473979 Mon Sep 17 00:00:00 2001 From: E5ten Date: Mon, 29 Oct 2018 09:29:48 -0400 Subject: [PATCH] Fix --apparent-size on ext4 and MacOS All credit goes to @JJJollyjim in this PR https://github.com/uutils/coreutils/pull/1294, but that PR needs to be rebased over master to be mergeable and hasn't been after multiple weeks. --- src/du/du.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/du/du.rs b/src/du/du.rs index 371cc4aa8..8e17a7bd4 100644 --- a/src/du/du.rs +++ b/src/du/du.rs @@ -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 {