Typo in previous change: print half the theoretical maximum as maximum

recommended amount.

Reported by:	<site freebsd at orientalsensation com>
Reviewed by:	des
This commit is contained in:
Sergey Kandaurov 2012-08-27 10:59:49 +00:00
parent 0be65db279
commit 9462305cbe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239723

View File

@ -2135,7 +2135,7 @@ swapon_check_swzone(unsigned long npages)
if (npages > maxpages / 2) {
printf("warning: total configured swap (%lu pages) "
"exceeds maximum recommended amount (%lu pages).\n",
npages, maxpages);
npages, maxpages / 2);
printf("warning: increase kern.maxswzone "
"or reduce amount of swap.\n");
return (-1);