From 129c225292f4d84ca37bce2236dbcfdc12d0ceac Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 3 Sep 2002 10:11:21 +0000 Subject: fixed too higher percentage. --- perl-install/install_steps_interactive.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index f1cdb27c2..e4c965f82 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -757,7 +757,7 @@ If only some CDs are missing, unselect them, then click Ok."), #------------------------------------------------------------------------------ sub installPackages { my ($o, $packages) = @_; - my ($current, $total) = 0; + my ($current, $total) = (0, 0); my $w = $o->wait_message(_("Installing"), _("Preparing installation")); @@ -765,7 +765,7 @@ sub installPackages { local *pkgs::installCallback = sub { my ($data, $type, $id, $subtype, $_amount, $_total) = @_; if ($type eq 'user' && $subtype eq 'install') { - $total = $_amount; + $total = $_total; } elsif ($type eq 'inst' && $subtype eq 'start') { my $p = $data->{depslist}[$id]; $w->set(_("Installing package %s\n%d%%", $p->name, $total && 100 * $current / $total)); -- cgit v1.2.1