summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/hd_gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 15:08:10 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 15:08:10 +0100
commit862730c409e8d36320ae1cd1f2684b3af2e2f921 (patch)
treed5581fa9ea116ea7728ecc7dbc27d6bb82c6b35c /perl-install/diskdrake/hd_gtk.pm
parentdb60d04d9590eb219cdeef087f487ec0b9ab981a (diff)
downloaddrakx-862730c409e8d36320ae1cd1f2684b3af2e2f921.tar
drakx-862730c409e8d36320ae1cd1f2684b3af2e2f921.tar.gz
drakx-862730c409e8d36320ae1cd1f2684b3af2e2f921.tar.bz2
drakx-862730c409e8d36320ae1cd1f2684b3af2e2f921.tar.xz
drakx-862730c409e8d36320ae1cd1f2684b3af2e2f921.zip
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index d98f25cac..5ddc91230 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -326,6 +326,7 @@ sub create_buttons4partitions {
my $ratio = $totalsectors ? ($width - @parts * $minwidth) / $totalsectors : 1;
my $i = 1;
while ($i < 30) {
+ $i++;
my $totalwidth = sum(map { $_->{size} * $ratio + $minwidth } @parts);
$totalwidth <= $width and last;
$ratio /= $totalwidth / $width * 1.1;