projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8135a65
)
Use status for the process count instead since persistent adds a task there.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sat, 30 Dec 2006 00:40:09 +0000 (
00:40
+0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sat, 30 Dec 2006 00:40:09 +0000 (
00:40
+0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2440
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
scripts/functions
patch
|
blob
|
history
diff --git
a/scripts/functions
b/scripts/functions
index
f0ddff2
..
0edb7a3
100644
(file)
--- a/
scripts/functions
+++ b/
scripts/functions
@@
-571,7
+571,7
@@
function _getProcNumberCount
# Use /proc/virtual from kernel 2.6 when possible
if test -d "/proc/virtual"; then
- set -- $($_GREP '^PROC:' "/proc/virtual/$1/limit" 2>/dev/null)
+ set -- $($_GREP '^Tasks:' "/proc/virtual/$1/status" 2>/dev/null)
_gp_procnr_cnt=$2
else
_gp_procnr_cnt=$($_VPS ax | $_AWK '{print $2}' | $_GREP -x "$1" | $_WC -l )