mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/lib/byobu/users:
- do a better job counting ssh users
This commit is contained in:
parent
5ccec29a85
commit
9049e329a5
2 changed files with 3 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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 --
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue