From 9462305cbe829d3ebde973839b2c354e24df7171 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Mon, 27 Aug 2012 10:59:49 +0000 Subject: [PATCH] Typo in previous change: print half the theoretical maximum as maximum recommended amount. Reported by: Reviewed by: des --- sys/vm/swap_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index a7d784a79631..d4a66b1f35d1 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -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);