code cleanup

This commit is contained in:
inxi-svn 2014-09-17 04:25:16 +00:00
parent 315ef9ac6f
commit 231d9055a7

3
inxi
View file

@ -10774,9 +10774,10 @@ print_cpu_data()
# note the numbering, the last array item is the min/max/not found for cpu speeds # note the numbering, the last array item is the min/max/not found for cpu speeds
if [[ ${#A_CPU_DATA[@]} -gt 2 && $B_SHOW_CPU == 'true' ]];then if [[ ${#A_CPU_DATA[@]} -gt 2 && $B_SHOW_CPU == 'true' ]];then
if [[ ${a_cpu_speeds[2]} != 0 ]];then if [[ ${a_cpu_speeds[2]} != 0 ]];then
max_speed="${C1}max$SEP3${C2} ${a_cpu_speeds[2]} MHz "
if [[ $B_EXTRA_EXTRA_DATA == 'true' && ${a_cpu_speeds[1]} != 0 ]];then if [[ $B_EXTRA_EXTRA_DATA == 'true' && ${a_cpu_speeds[1]} != 0 ]];then
max_speed="${C1}min/max$SEP3${C2} ${a_cpu_speeds[1]}/${a_cpu_speeds[2]} MHz " max_speed="${C1}min/max$SEP3${C2} ${a_cpu_speeds[1]}/${a_cpu_speeds[2]} MHz "
else
max_speed="${C1}max$SEP3${C2} ${a_cpu_speeds[2]} MHz "
fi fi
fi fi
for (( i=0; i < ${#A_CPU_DATA[@]}-1; i++ )) for (( i=0; i < ${#A_CPU_DATA[@]}-1; i++ ))