summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps_gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-12-11 18:39:05 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-12-12 10:12:44 +0100
commitea1908ab2c9e4b9eedf1dfbfb0449bc049ecdcb8 (patch)
treeceacd1fb3eb0a77d7ad95f2d8a587e5cae6975b2 /perl-install/install/steps_gtk.pm
parent8f904fa664b953e2f81759dd7597067c8a0a7242 (diff)
downloaddrakx-ea1908ab2c9e4b9eedf1dfbfb0449bc049ecdcb8.tar
drakx-ea1908ab2c9e4b9eedf1dfbfb0449bc049ecdcb8.tar.gz
drakx-ea1908ab2c9e4b9eedf1dfbfb0449bc049ecdcb8.tar.bz2
drakx-ea1908ab2c9e4b9eedf1dfbfb0449bc049ecdcb8.tar.xz
drakx-ea1908ab2c9e4b9eedf1dfbfb0449bc049ecdcb8.zip
make sure ratio is an int64 (mga#19895)
as this is the variable that cause issues
Diffstat (limited to 'perl-install/install/steps_gtk.pm')
-rw-r--r--perl-install/install/steps_gtk.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm
index f3ae0a705..c0658063b 100644
--- a/perl-install/install/steps_gtk.pm
+++ b/perl-install/install/steps_gtk.pm
@@ -655,9 +655,9 @@ sub installPackages {
my $dtime = time() - $o->{install_start_time};
my $ratio =
- $total_size == 0 ? 0 :
+ $total_size == 0 ? int64(0) :
install::pkgs::size2time($current_total_size + $amount, $total_size) / install::pkgs::size2time($total_size, $total_size);
- $ratio >= 1 and $ratio = 1;
+ $ratio >= 1 and $ratio = int64(1);
my $total_time = $ratio ? $dtime / $ratio : time();
gtkval_modify(\$progress_total, $ratio);