summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-11 13:11:03 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-11 13:11:03 +0000
commit964022ae5e3ba01668875671b34166aece784ae1 (patch)
treec368b63c5842abc8b5ee6abe52e18a910f7a5ed9 /lib/MDV
parent836fcd32803f03499522dbd332f0b7047b79287d (diff)
downloaddraklive-964022ae5e3ba01668875671b34166aece784ae1.tar
draklive-964022ae5e3ba01668875671b34166aece784ae1.tar.gz
draklive-964022ae5e3ba01668875671b34166aece784ae1.tar.bz2
draklive-964022ae5e3ba01668875671b34166aece784ae1.tar.xz
draklive-964022ae5e3ba01668875671b34166aece784ae1.zip
use more meaningful supplement_slash_size
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Draklive/Media.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index f86d01e..f950c88 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -73,9 +73,8 @@ sub find_boot_partition_index {
$media->find_partition_index('/boot') || $media->find_partition_index('/');
}
-sub supplement_partitions {
+sub supplement_slash_size {
my ($media, $total_size) = @_;
-
my $correction = 1.2;
my $slash = find { $_->{mntpoint} eq '/' } @{$media->{partitions}};
$slash->{size} ||= POSIX::ceil($total_size * $correction / $common::SECTORSIZE);