commit d8e829a88db8db9a5613a647fcd381bdbfee92f4 Author: FRIGN <[email protected]> Date: Sun Apr 5 23:28:49 2015 +0200
Solve little output issue in du(1)
Don't run the size throug nblks() twice.
diff --git a/du.c b/du.c
index 086c9b8..5b43598 100644
--- a/du.c
+++ b/du.c
@@ -100,7 +100,7 @@ main(int argc, char *argv[])
if (!argc) {
recurse(".", &n, &r);
- printpath(nblks(n), ".");
+ printpath(n, ".");
} else {
for (; *argv; argc--, argv++) {
recurse(*argv, &n, &r);
