_getProcNumberCount(): s!$_ctx!$1!
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 1 Oct 2004 12:08:39 +0000 (12:08 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 1 Oct 2004 12:08:39 +0000 (12:08 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1720 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index 66c3bd3..391961b 100644 (file)
@@ -402,7 +402,7 @@ function _getProcNumberCount
        set -- $($_GREP '^PROC:' "/proc/virtual/$1/limit" 2>/dev/null)
        procnr_cnt=$2
     else
-       procnr_cnt=$($_VPS ax | $_AWK '{print $2}' | $_GREP -x "$_ctx" | $_WC -l )
+       procnr_cnt=$($_VPS ax | $_AWK '{print $2}' | $_GREP -x "$1" | $_WC -l )
     fi
 
     let procnr_cnt=procnr_cnt+0