* bin/cpu-count: performance improvement, use getconf

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-08 11:37:57 -05:00
commit 4981e35969
2 changed files with 5 additions and 4 deletions

View file

@ -21,5 +21,5 @@ if [ "$1" = "--detail" ]; then
grep -i "^model name" /proc/cpuinfo grep -i "^model name" /proc/cpuinfo
exit 0 exit 0
fi fi
count=`grep -c "^processor.*:" /proc/cpuinfo` count=`getconf _NPROCESSORS_ONLN`
[ "$count" = "1" ] || printf "%sx" "$count" [ "$count" = "1" ] || printf "%sx" "$count"

7
debian/changelog vendored
View file

@ -1,11 +1,12 @@
byobu (2.9) unreleased; urgency=low byobu (2.9) unreleased; urgency=low
* bin/wifi-quality, bin/network-up, bin/network-down: must use /sbin
in iwconfig and ifconfig paths
* screen-launcher: slightly cleaner bash exit (still could use some * screen-launcher: slightly cleaner bash exit (still could use some
improvement) improvement)
* bin/wifi-quality, bin/network-up, bin/network-down: must use /sbin
in iwconfig and ifconfig paths
* bin/cpu-count: performance improvement, use getconf
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 08 Jun 2009 11:25:02 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 08 Jun 2009 11:27:52 -0500
byobu (2.8-0ubuntu1) karmic; urgency=low byobu (2.8-0ubuntu1) karmic; urgency=low