bug fix on single core -xxC output

This commit is contained in:
inxi-svn 2014-09-17 04:46:36 +00:00
parent 2a9bb12e51
commit db4ff03d58

4
inxi
View file

@ -10739,8 +10739,8 @@ print_cpu_data()
fi fi
# this handles bsd case unless we get a way to get max/min cpu speeds # this handles bsd case unless we get a way to get max/min cpu speeds
if [[ ${a_cpu_speeds[0]} != 'N/A' && ${a_cpu_speeds[2]} != 0 ]];then if [[ ${a_cpu_speeds[0]} != 'N/A' && ${a_cpu_speeds[2]} != 0 ]];then
if [[ ${#A_CPU_DATA[@]} -eq 2 && $B_SHOW_CPU == 'true' \ if [[ $B_EXTRA_EXTRA_DATA == 'true' && ${#A_CPU_DATA[@]} -eq 2 &&
&& ${a_cpu_speeds[1]} != 0 ]];then $B_SHOW_CPU == 'true' && ${a_cpu_speeds[1]} != 0 ]];then
a_cpu_working[1]="${a_cpu_speeds[0]} MHz (min/max ${a_cpu_speeds[1]}/${a_cpu_speeds[2]})" a_cpu_working[1]="${a_cpu_speeds[0]} MHz (min/max ${a_cpu_speeds[1]}/${a_cpu_speeds[2]})"
elif [[ ${a_cpu_speeds[0]} == ${a_cpu_speeds[2]} ]];then elif [[ ${a_cpu_speeds[0]} == ${a_cpu_speeds[2]} ]];then
a_cpu_working[1]="${a_cpu_speeds[0]} MHz (max)" a_cpu_working[1]="${a_cpu_speeds[0]} MHz (max)"