You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
565 B

  1. --- a/usr/lib/byobu/processes
  2. +++ b/usr/lib/byobu/processes
  3. @@ -20,15 +20,15 @@
  4. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  5. __processes_detail() {
  6. - ps -ej
  7. + ps -ej 2>/dev/null
  8. }
  9. __processes() {
  10. local count=
  11. if [ -r /proc ]; then
  12. - count=$(ls -d /proc/[0-9]* 2>/dev/null| wc -l)
  13. + count=$(ls -d /proc/[0-9]* 2>/dev/null | wc -l)
  14. else
  15. - count=$(ps -ef | wc -l | awk '{print $1}')
  16. + count=$(ps -ef | wc -l)
  17. fi
  18. [ -n "$count" ] || return
  19. color b y w; printf "%s" "$count"; color -; color y w; printf "&"; color --