mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix, needed a space for irc output or it broke, also shortened short form output
This commit is contained in:
parent
d1c7042ab7
commit
f368a7c64c
8
inxi
8
inxi
|
@ -10743,12 +10743,12 @@ print_cpu_data()
|
||||||
# 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[2]} != 0 ]];then
|
if [[ ${a_cpu_speeds[2]} != 0 ]];then
|
||||||
if [[ ${a_cpu_speeds[0]} == ${a_cpu_speeds[2]} ]];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
|
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
|
||||||
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
|
fi
|
||||||
cpu_2_data="$cpu_2_data$cpu_clock_speed"
|
cpu_2_data="$cpu_2_data$cpu_clock_speed"
|
||||||
else
|
else
|
||||||
|
@ -10779,7 +10779,7 @@ print_cpu_data()
|
||||||
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 "
|
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 "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
for (( i=0; i < ${#A_CPU_DATA[@]}-1; i++ ))
|
for (( i=0; i < ${#A_CPU_DATA[@]}-1; i++ ))
|
||||||
|
|
Loading…
Reference in a new issue