commit d8e829a88db8db9a5613a647fcd381bdbfee92f4
parent bb2c0cff4596818204a4f4ec610d7dc7aa5a7911
Author: FRIGN <dev@frign.de>
Date: Sun, 5 Apr 2015 23:28:49 +0200
Solve little output issue in du(1)
Don't run the size throug nblks() twice.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);