summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-06-07 18:20:40 +0000
committerFrancois Pons <fpons@mandriva.com>2000-06-07 18:20:40 +0000
commit234684d7e2fcca452ee5c0bedd0e82c15a3dc788 (patch)
tree60b1a1022a726c0af371559d4d40b2a062da8162 /perl-install/pkgs.pm
parent0d81dab56418bb5bac57ae4f6b41d508da2180ec (diff)
downloaddrakx-backup-do-not-use-234684d7e2fcca452ee5c0bedd0e82c15a3dc788.tar
drakx-backup-do-not-use-234684d7e2fcca452ee5c0bedd0e82c15a3dc788.tar.gz
drakx-backup-do-not-use-234684d7e2fcca452ee5c0bedd0e82c15a3dc788.tar.bz2
drakx-backup-do-not-use-234684d7e2fcca452ee5c0bedd0e82c15a3dc788.tar.xz
drakx-backup-do-not-use-234684d7e2fcca452ee5c0bedd0e82c15a3dc788.zip
*** empty log message ***
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 60b856b83..dff11bea2 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -191,7 +191,7 @@ sub extractHeaders($$$) {
my $A = -1.922e-05;
my $B = 1.18411;
my $C = 23.2; #- 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;
+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.