* bin/users: use pgrep -c, performance improvement

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-17 17:41:20 -05:00
commit d2d3ef53cf

View file

@ -25,4 +25,4 @@ if [ "$1" = "--detail" ]; then
exit 0 exit 0
fi fi
printf "\005{= wr}%d#\005{-} " `pgrep -f "sshd:.*@" | wc -l` printf "\005{= wr}%d#\005{-} " `pgrep -c -f "sshd:.*@"`