X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Flib%2Flogin_functions.sh;h=f435d1968f5d0ba7974580fbaec636c2de93e14e;hb=416c63595d5cc8b1b332b212ec8adf08fa78cc1e;hp=8d6bbd9b02f450fb068096367f58b81d066ce6f2;hpb=60bf43ac8fbe8ada1eb8029725125ae1473f1a9f;p=khome.git diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 8d6bbd9..f435d19 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -674,11 +674,14 @@ status() { echo 'accounting' - printf '%stmux\n%ssessions %d, clients %d\n' \ + printf '%stmux\n%sservers %d, clients %d\n' \ "$indent_unit" \ "${indent_unit}${indent_unit}" \ - "$(tmux list-sessions 2> /dev/null | wc -l)" \ - "$(tmux list-clients 2> /dev/null | wc -l)" + "$(pgrep -l 'tmux: server' | wc -l)" \ + "$(pgrep -l 'tmux: client' | wc -l)" + # TODO sessions and clients per server + #"$(tmux list-sessions 2> /dev/null | wc -l)" \ + #"$(tmux list-clients 2> /dev/null | wc -l)" echo