bug fix, needed a space for irc output or it broke, also shortened short form output

This commit is contained in:
inxi-svn 2014-09-17 03:53:09 +00:00
parent d1c7042ab7
commit f368a7c64c

8
inxi
View file

@ -10743,12 +10743,12 @@ print_cpu_data()
# this handles bsd case unless we get a way to get max/min cpu speeds
if [[ ${a_cpu_speeds[2]} != 0 ]];then
if [[ ${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]} (max) MHz"
else
a_cpu_working[1]="${a_cpu_speeds[0]} MHz (max ${a_cpu_speeds[2]} MHz)"
a_cpu_working[1]="${a_cpu_speeds[0]} (max ${a_cpu_speeds[2]}) MHz"
fi
fi
cpu_clock_speed="${C1}clocked at${C2} ${a_cpu_working[1]}"
cpu_clock_speed="${C1}speed$SEP3${C2} ${a_cpu_working[1]}"
fi
cpu_2_data="$cpu_2_data$cpu_clock_speed"
else
@ -10779,7 +10779,7 @@ print_cpu_data()
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
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 "
fi
fi
for (( i=0; i < ${#A_CPU_DATA[@]}-1; i++ ))