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=''