mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fix, math mistake
This commit is contained in:
parent
8cef566017
commit
6111b758a5
2
inxi
2
inxi
|
@ -10739,7 +10739,7 @@ print_cpu_data()
|
|||
fi
|
||||
# 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_DATA[@]} -eq 1 && $B_SHOW_CPU == 'true' \
|
||||
if [[ ${#A_CPU_DATA[@]} -eq 2 && $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]})"
|
||||
elif [[ ${a_cpu_speeds[0]} == ${a_cpu_speeds[2]} ]];then
|
||||
|
|
Loading…
Reference in a new issue