summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/du.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/du.c b/src/du.c
index ad22be0ea..16e9d5d33 100644
--- a/src/du.c
+++ b/src/du.c
@@ -491,10 +491,14 @@ count_entry (ent, top, last_dev)
}
else if (opt_all || top)
{
- printf ("%ld\t%s\n", output_size == size_bytes ? size
- : convert_blocks (size, output_size == size_kilobytes),
- path->text);
- fflush (stdout);
+ int print_only_dir_size = 1;
+ if (!print_only_dir_size)
+ {
+ printf ("%ld\t%s\n", output_size == size_bytes ? size
+ : convert_blocks (size, output_size == size_kilobytes),
+ path->text);
+ fflush (stdout);
+ }
}
return size;