diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-07-31 13:45:40 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-07-31 13:45:40 +0000 |
commit | c984b52d4c3ec1c771daca9cb07a78470f525bd8 (patch) | |
tree | a26e7d30580d719beef974218bec178b7d8f1275 /lib | |
parent | 637c9dc0d7a80cb1e5551939637046fb57cb7555 (diff) | |
download | drakiso-c984b52d4c3ec1c771daca9cb07a78470f525bd8.tar drakiso-c984b52d4c3ec1c771daca9cb07a78470f525bd8.tar.gz drakiso-c984b52d4c3ec1c771daca9cb07a78470f525bd8.tar.bz2 drakiso-c984b52d4c3ec1c771daca9cb07a78470f525bd8.tar.xz drakiso-c984b52d4c3ec1c771daca9cb07a78470f525bd8.zip |
correct slash size in supplement_partitions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Draklive/Media.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm index 278d463..4c7a7f4 100644 --- a/lib/MDV/Draklive/Media.pm +++ b/lib/MDV/Draklive/Media.pm @@ -59,7 +59,9 @@ sub supplement_partitions { my $slash = find { $_->{mntpoint} eq '/' } @{$media->{partitions}}; $slash->{fs_type} ||= $media->get_media_setting('fs'); - $slash->{size} ||= $total_size / $common::SECTORSIZE; + + my $correction = 1.2; + $slash->{size} ||= int($total_size * $correction) / $common::SECTORSIZE; } 1; |