fixed cpu count backup test

This commit is contained in:
inxi-svn 2008-11-04 04:02:59 +00:00
parent 6037e4002f
commit 1871cef434

2
inxi
View file

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