diff options
author | Francois Pons <fpons@mandriva.com> | 2000-09-25 16:22:18 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-09-25 16:22:18 +0000 |
commit | 07cfbe49efa16539739dbb312ebe81ab2c81b87d (patch) | |
tree | cbad47b03620d1a267663791f7ef905c61478102 /perl-install/pkgs.pm | |
parent | 8e690ad57bb02fe2bd838aa60b80774149971047 (diff) | |
download | drakx-07cfbe49efa16539739dbb312ebe81ab2c81b87d.tar drakx-07cfbe49efa16539739dbb312ebe81ab2c81b87d.tar.gz drakx-07cfbe49efa16539739dbb312ebe81ab2c81b87d.tar.bz2 drakx-07cfbe49efa16539739dbb312ebe81ab2c81b87d.tar.xz drakx-07cfbe49efa16539739dbb312ebe81ab2c81b87d.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r-- | perl-install/pkgs.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index d71ff768a..bb1e66ba7 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -195,9 +195,9 @@ sub extractHeaders($$$) { #- a limit to change the approximation to use a linear one. #- for information above this point, we have the corrected size below the #- original size wich is absurd, this point is named D below. -my $A = -1.21568e-05; -my $B = 1.21561; -my $C = -23.9889; #- doesn't take hdlist's into account as getAvailableSpace will do it. +my $A = -121568/100000000000; # -1.21568e-05; #- because perl does like that on some language (TO BE FIXED QUICKLY) +my $B = 121561/100000; # 1.21561 +my $C = -239889/10000; # -23.9889 #- doesn't take hdlist's into account as getAvailableSpace will do it. my $D = (-sqrt(sqr($B - 1) - 4 * $A * $C) - ($B - 1)) / 2 / $A; #- $A is negative so a positive solution is with - sqrt ... sub correctSize { $_[0] < $D ? ($A * $_[0] + $B) * $_[0] + $C : $_[0] } #- size correction in MB. sub invCorrectSize { $_[0] < $D ? (sqrt(sqr($B) + 4 * $A * ($_[0] - $C)) - $B) / 2 / $A : $_[0]; } #- size correction in MB. |