Commit 4e307f13 authored by Natanael Copa's avatar Natanael Copa

testing/util-vserver: fix post install script

parent 199dba2f
......@@ -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"
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment