diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-02-09 13:09:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-02-09 13:09:32 +0000 |
commit | 8bc8305d2977416baaf3dbaa37a4dae4a911ea2f (patch) | |
tree | 3d3e1aae544e5e746e573040492d6d3854414b4f /perl-install/swap.pm | |
parent | 251ee11862dac86408af70c72282765d334bfda4 (diff) | |
download | drakx-backup-do-not-use-8bc8305d2977416baaf3dbaa37a4dae4a911ea2f.tar drakx-backup-do-not-use-8bc8305d2977416baaf3dbaa37a4dae4a911ea2f.tar.gz drakx-backup-do-not-use-8bc8305d2977416baaf3dbaa37a4dae4a911ea2f.tar.bz2 drakx-backup-do-not-use-8bc8305d2977416baaf3dbaa37a4dae4a911ea2f.tar.xz drakx-backup-do-not-use-8bc8305d2977416baaf3dbaa37a4dae4a911ea2f.zip |
no_comment
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) { |