From db090a72b104fab7d4aef0aa33c397b5af32c230 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 16 Jun 2009 16:11:07 -0500 Subject: [PATCH] * bin/processes: improve performance by listing /proc (doubles the speed) Signed-off-by: Dustin Kirkland --- bin/processes | 2 +- debian/changelog | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/processes b/bin/processes index 3689bbe2..7d00fdde 100755 --- a/bin/processes +++ b/bin/processes @@ -22,4 +22,4 @@ if [ "$1" = "--detail" ]; then exit 0 fi -printf "\005{= yk}%s&\005{-} " $(ps -e | wc -l) +printf "\005{= yk}%s&\005{-} " $(ls -d /proc/[0-9]* | wc -l) diff --git a/debian/changelog b/debian/changelog index b91f3bd3..8a22e724 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,9 +13,9 @@ byobu (2.12) unreleased; urgency=low run every 30 seconds, and wifi_quality to run every 10 seconds * bin/wifi_quality: significant performance improvements, remove unneeded route call, cache iwconfig output so that it's only called once + * bin/processes: improve performance by listing /proc (doubles the speed) - - -- Dustin Kirkland Tue, 16 Jun 2009 15:35:30 -0500 + -- Dustin Kirkland Tue, 16 Jun 2009 16:10:36 -0500 byobu (2.11-0ubuntu1) karmic; urgency=low