added an error handler case to cpu speed output, just in case

This commit is contained in:
inxi-svn 2014-09-17 04:00:30 +00:00
parent 45b7042c16
commit 46e71bb187

2
inxi
View file

@ -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