mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added an error handler case to cpu speed output, just in case
This commit is contained in:
parent
45b7042c16
commit
46e71bb187
2
inxi
2
inxi
|
@ -10741,7 +10741,7 @@ print_cpu_data()
|
|||
a_cpu_working[1]="${a_cpu_working[1]%.*} MHz"
|
||||
fi
|
||||
# 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]} != 'N/A' && ${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)"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue