diff --git a/debian/changelog b/debian/changelog index de93fd18..4762868b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 30 Jan 2012 18:12:49 -0600 diff --git a/usr/lib/byobu/users b/usr/lib/byobu/users index 79952412..c9083208 100755 --- a/usr/lib/byobu/users +++ b/usr/lib/byobu/users @@ -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 --