From 964022ae5e3ba01668875671b34166aece784ae1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 11 Sep 2009 13:11:03 +0000 Subject: use more meaningful supplement_slash_size --- lib/MDV/Draklive/Media.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/MDV/Draklive') 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); -- cgit v1.2.1