From 6111b758a597facafe9ba162d4ffbc5fae5bb902 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 17 Sep 2014 04:38:48 +0000 Subject: [PATCH] bug fix, math mistake --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 90026b9..01277a4 100755 --- a/inxi +++ b/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