testing/util-vserver: fix post install script

This commit is contained in:
Natanael Copa 2009-10-29 10:38:36 +00:00
parent 199dba2f5b
commit 4e307f139b
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
pkgname=util-vserver
pkgver=0.30.216_pre2849
_realver=0.30.216-pre2849
pkgrel=4
pkgrel=5
pkgdesc="Linux-VServer admin utilities"
url="http://www.nongnu.org/util-vserver/"
license="GPL"

View File

@ -5,7 +5,7 @@ if [ -f /etc/vservers/.defaults/rlimits/nproc ]; then
fi
# calculate the nproc limit from amount of ram
memtotal=$(awk '$1 == "MemTotal:" {print $2}' /proc/meminfo 2>/dev/null
memtotal=$(awk '$1 == "MemTotal:" {print $2}' /proc/meminfo 2>/dev/null)
nproc=$(( ${memtotal:-524288} / 256 ))
# set a "sane" default nproc limit