summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-29 15:53:35 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-29 15:53:35 +0000
commit3954c6c9a7a8969090f7fde2646499bef8d2a6f2 (patch)
tree01f725ea992550bb3234ae56a45065c23e891e12 /lib/MDV
parentf3e639c8604ea6ecde39472911e9f38ea8dcaa53 (diff)
downloaddraklive-3954c6c9a7a8969090f7fde2646499bef8d2a6f2.tar
draklive-3954c6c9a7a8969090f7fde2646499bef8d2a6f2.tar.gz
draklive-3954c6c9a7a8969090f7fde2646499bef8d2a6f2.tar.bz2
draklive-3954c6c9a7a8969090f7fde2646499bef8d2a6f2.tar.xz
draklive-3954c6c9a7a8969090f7fde2646499bef8d2a6f2.zip
use -B 1 instead of -b when running du (to use real size instead of apparent size)
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Draklive/Utils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Utils.pm b/lib/MDV/Draklive/Utils.pm
index af490ba..7341e34 100644
--- a/lib/MDV/Draklive/Utils.pm
+++ b/lib/MDV/Draklive/Utils.pm
@@ -10,7 +10,7 @@ use Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(directory_usage run_ run_foreach);
-sub directory_usage { first(split /\s/, `du -sb $_[0]`) }
+sub directory_usage { first(split /\s/, `du -s -B 1 $_[0]`) }
#- expand only if the pattern contains '*'
#- and matches dot characters (like shell dotglob)