From 164e94e201e9d49ab9464fc737dfcfbc43f6e596 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 9 May 2000 12:07:40 +0000 Subject: no_comment --- perl-install/install_any.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/install_any.pm') 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) = @_; -- cgit v1.2.1