diff options
Diffstat (limited to 'perl-install/swap.pm')
-rw-r--r-- | perl-install/swap.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/swap.pm b/perl-install/swap.pm index a7f122bec..17033f39f 100644 --- a/perl-install/swap.pm +++ b/perl-install/swap.pm @@ -74,7 +74,7 @@ sub make($;$) { $version = 1; } - $nbpages >= 10 or die "swap area needs to be at least " . (10 * $pagesize >> 10) . "kB"; + $nbpages >= 10 or die "swap area needs to be at least " . (10 * $pagesize / 1024) . "kB"; -b $devicename or $checkBlocks = 0; my $rdev = (stat $devicename)[6];# or log::l("stat of $devicename failed: $!"); @@ -88,7 +88,7 @@ sub make($;$) { if ($nbpages > $maxpages) { $nbpages = $maxpages; - log::l("warning: truncating swap area to " . ($nbpages * $pagesize >> 10) . "kB"); + log::l("warning: truncating swap area to " . ($nbpages * $pagesize / 1024) . "kB"); } if ($checkBlocks) { |