summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-26 11:08:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-26 11:08:58 +0000
commit450d7d82c10d65d95e67936177a531a0663d6062 (patch)
tree6ee29b81e466ebb79ea0a478ff5121e7188c86d1
parent9db44f609ac0deb924ae954151334f358ad2c9ae (diff)
downloaddrakx-450d7d82c10d65d95e67936177a531a0663d6062.tar
drakx-450d7d82c10d65d95e67936177a531a0663d6062.tar.gz
drakx-450d7d82c10d65d95e67936177a531a0663d6062.tar.bz2
drakx-450d7d82c10d65d95e67936177a531a0663d6062.tar.xz
drakx-450d7d82c10d65d95e67936177a531a0663d6062.zip
more precise log_size during install
-rw-r--r--perl-install/install_any.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 49fa5c394..b5e6d7526 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -1795,9 +1795,9 @@ sub media_browser {
sub log_sizes {
my ($o) = @_;
my @df = MDK::Common::System::df($o->{prefix});
- log::l(sprintf "Installed: %s(df), %s(rpm)",
- formatXiB($df[0] - $df[1], 1024),
- formatXiB(sum(run_program::rooted_get_stdout($o->{prefix}, 'rpm', '-qa', '--queryformat', '%{size}\n')))) if -x "$o->{prefix}/bin/rpm";
+ log::l(sprintf "Installed: %dMB(df), %dMB(rpm)",
+ ($df[0] - $df[1]) / 1024,
+ sum(run_program::rooted_get_stdout($o->{prefix}, 'rpm', '-qa', '--queryformat', '%{size}\n')) / 1024 / 1024) if -x "$o->{prefix}/bin/rpm";
}
sub X_options_from_o {