diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-05-09 12:07:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-05-09 12:07:40 +0000 |
commit | 164e94e201e9d49ab9464fc737dfcfbc43f6e596 (patch) | |
tree | 5deff235fd452802818f0a3f7b5a9a057b63f23a /perl-install/install_any.pm | |
parent | e29430e040fb03c614900bbb39ec428c610a8726 (diff) | |
download | drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.gz drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.bz2 drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.tar.xz drakx-backup-do-not-use-164e94e201e9d49ab9464fc737dfcfbc43f6e596.zip |
no_comment
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 89205de2a..ef54c8dcd 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -232,7 +232,7 @@ sub getAvailableSpace { #- 50mb may be a good choice to avoid almost all problem of insuficient space left... my $minAvailableSize = 50 * sqr(1024); - int (getAvailableSpace_mounted($o->{prefix}) || getAvailableSpace_raw($o->{fstab})) * 512 / 1.07 - $minAvailableSize; + int ((getAvailableSpace_mounted($o->{prefix}) || getAvailableSpace_raw($o->{fstab}) * 512 / 1.07) - $minAvailableSize); } sub getAvailableSpace_mounted { @@ -240,7 +240,7 @@ sub getAvailableSpace_mounted { my $buf = ' ' x 20000; syscall_('statfs', "$prefix/usr", $buf) or return; my (undef, $blocksize, $size, undef, $free, undef) = unpack "L2L4", $buf; - ($free || 1) * $blocksize / 512; + ($free || 1) * $blocksize; } sub getAvailableSpace_raw { my ($fstab) = @_; |