mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
code cleanup
This commit is contained in:
parent
315ef9ac6f
commit
231d9055a7
3
inxi
3
inxi
|
@ -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++ ))
|
||||||
|
|
Loading…
Reference in a new issue