From 1871cef434f3b6b2e2e758e0334f302917a73642 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 4 Nov 2008 04:02:59 +0000 Subject: [PATCH] fixed cpu count backup test --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 96355b4..4e42d9f 100755 --- a/inxi +++ b/inxi @@ -734,7 +734,7 @@ get_cpu_core_count() ## Because of the upcoming release of cpus with core counts over 6, a count of cores is given after Deca (10) # count the number of processors given local cpu_core_count=$(grep -ic "cpu cores" /proc/cpuinfo| cut -d':' -f2) - if [ -z "$cpu_core_count" ];then + if [ "$cpu_core_count" -eq 0 ];then cpu_core_count=$(grep -ic "^processor" /proc/cpuinfo| cut -d':' -f2) fi local cpu_alpha_count='' core_count=''