diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-07-31 14:33:23 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-07-31 14:33:23 +0000 |
commit | 5aa7f0a07c831523fded195ac3d11a0cd5ea10a3 (patch) | |
tree | 9b2cf311018bd86c7e310e7760f8592c44e6158b /draklive | |
parent | 1133530f081f0a7d04d8264f770fe5716d009a8b (diff) | |
download | drakiso-5aa7f0a07c831523fded195ac3d11a0cd5ea10a3.tar drakiso-5aa7f0a07c831523fded195ac3d11a0cd5ea10a3.tar.gz drakiso-5aa7f0a07c831523fded195ac3d11a0cd5ea10a3.tar.bz2 drakiso-5aa7f0a07c831523fded195ac3d11a0cd5ea10a3.tar.xz drakiso-5aa7f0a07c831523fded195ac3d11a0cd5ea10a3.zip |
fix fold_left usage
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -685,7 +685,7 @@ sub allocate_master { sectors => 63, # sectors per track }; - my $disk_sectors = fold_left { $::a->{size} + $::b->{size} } @{$live->{media}{partitions}}; + my $disk_sectors = fold_left { $::a + $::b } map { $_->{size} } @{$live->{media}{partitions}}; $disk_sectors += $geom->{sectors}; # keep one more track $geom->{cylinders} = int($disk_sectors / ($geom->{sectors} * $geom->{heads})); |