[Fai-commit] r4836 - people/michael/features/setup_harddisks_2/implementation/lib
mt at alioth.debian.org
mt at alioth.debian.org
Mon Jan 7 19:33:00 UTC 2008
Author: mt
Date: 2008-01-07 19:33:00 +0000 (Mon, 07 Jan 2008)
New Revision: 4836
Modified:
people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm
Log:
yes, 1 Byte is 1024*1024 MBytes, right? :-) - fixed that stupidity.
Modified: people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm 2008-01-07 12:31:43 UTC (rev 4835)
+++ people/michael/features/setup_harddisks_2/implementation/lib/sizes.pm 2008-01-07 19:33:00 UTC (rev 4836)
@@ -215,8 +215,8 @@
# get the effective sizes (in Bytes) from the range
my ($start, $end) = &FAI::make_range($lv_size->{range}, "${vg_size}MB");
# make them MB
- $start *= 1024.0 * 1024.0;
- $end *= 1024.0 * 1024.0;
+ $start /= 1024.0 * 1024.0;
+ $end /= 1024.0 * 1024.0;
# increase the used space
$min_space += $start;
@@ -252,8 +252,8 @@
my ($start, $end) =
&FAI::make_range($FAI::configs{$config}{volumes}{$lv}{size}{range}, "${vg_size}MB");
# make them MB
- $start *= 1024.0 * 1024.0;
- $end *= 1024.0 * 1024.0;
+ $start /= 1024.0 * 1024.0;
+ $end /= 1024.0 * 1024.0;
# write the final size
$FAI::configs{$config}{volumes}{$lv}{size}{eff_size} =
More information about the Fai-commit
mailing list