diff options
Diffstat (limited to 'testing/util-vserver/util-vserver.post-install')
-rw-r--r-- | testing/util-vserver/util-vserver.post-install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/util-vserver/util-vserver.post-install b/testing/util-vserver/util-vserver.post-install index 3d3326a7af..9c8aad1e4c 100644 --- a/testing/util-vserver/util-vserver.post-install +++ b/testing/util-vserver/util-vserver.post-install @@ -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 |