From 826a43496b6067f9d2467a23b8bf550acc4fc0bf Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Wed, 6 May 2009 20:58:05 -0500 Subject: [PATCH] * bin/cpu-count: nothing to print on --detail Signed-off-by: Dustin Kirkland --- bin/cpu-count | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cpu-count b/bin/cpu-count index 42b052f7..51c2c8d3 100755 --- a/bin/cpu-count +++ b/bin/cpu-count @@ -17,8 +17,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -count=`grep -c "^processor.*:" /proc/cpuinfo` -[ "$count" = "1" ] || printf "%sx" "$count" if [ "$1" = "--detail" ]; then exit 0 fi +count=`grep -c "^processor.*:" /proc/cpuinfo` +[ "$count" = "1" ] || printf "%sx" "$count"