* usr/lib/byobu/users:

- do a better job counting ssh users
This commit is contained in:
Dustin Kirkland 2012-02-12 08:50:07 -06:00
commit 9049e329a5
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -14,6 +14,8 @@ byobu (5.8) unreleased; urgency=low
* usr/share/byobu/profiles/tmux:
- drop the brackets around the open windows, saves ~4 horizontal
characters; trying to get default tmux to fit in 80x25
* usr/lib/byobu/users:
- do a better job counting ssh users
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 30 Jan 2012 18:12:49 -0600

View file

@ -32,7 +32,7 @@ __users() {
else
# Note: we'd like to use pgrep -c, however, this isn't available in
# busybox and some distro's pgrep (and it doesn't exit non-zero).
count=$(pgrep -f "sshd:.*@" | wc -l) || return
count=$(pgrep -f "^sshd:.*@" | wc -l) || return
fi
if [ $count -gt 0 ]; then
color b w r; printf "%d" "$count"; color -; color w r; printf "#"; color --