mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix, forgot a $ sign
This commit is contained in:
parent
a2ec193fd6
commit
904290c8a0
6
inxi
6
inxi
|
@ -3780,8 +3780,7 @@ get_cpu_data()
|
||||||
printf("%s %s\n", max, "Mhz")
|
printf("%s %s\n", max, "Mhz")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} ' $FILE_CPUINFO ) )
|
||||||
' $FILE_CPUINFO ) )
|
|
||||||
IFS="$ORIGINAL_IFS"
|
IFS="$ORIGINAL_IFS"
|
||||||
log_function_data 'cat' "$FILE_CPUINFO"
|
log_function_data 'cat' "$FILE_CPUINFO"
|
||||||
elif [[ -n $BSD_TYPE ]];then
|
elif [[ -n $BSD_TYPE ]];then
|
||||||
|
@ -9185,8 +9184,9 @@ print_short_data()
|
||||||
local cpu_model="${a_cpu_working[0]}"
|
local cpu_model="${a_cpu_working[0]}"
|
||||||
## assemble data for output
|
## assemble data for output
|
||||||
local cpu_clock="${a_cpu_working[1]}" # old CPU3
|
local cpu_clock="${a_cpu_working[1]}" # old CPU3
|
||||||
|
echo $cpu_clock
|
||||||
if [[ -z ${a_cpu_working[1]} || ${a_cpu_working[1]} < 50 ]];then
|
if [[ -z ${a_cpu_working[1]} || ${a_cpu_working[1]} < 50 ]];then
|
||||||
$a_cpu_working[1]=$(get_cpu_speed_hack)
|
a_cpu_working[1]=$(get_cpu_speed_hack)
|
||||||
fi
|
fi
|
||||||
# this gets that weird min/max final array item, which almost never contains any data of use
|
# this gets that weird min/max final array item, which almost never contains any data of use
|
||||||
local min_max_clock_nu=$(( ${#A_CPU_DATA[@]} - 1 ))
|
local min_max_clock_nu=$(( ${#A_CPU_DATA[@]} - 1 ))
|
||||||
|
|
Loading…
Reference in a new issue