CPU: Quote strings
This commit is contained in:
parent
322a866b65
commit
5c7ab93129
1 changed files with 7 additions and 7 deletions
14
neofetch
14
neofetch
|
@ -685,13 +685,13 @@ get_cpu() {
|
||||||
# Get cpu speed
|
# Get cpu speed
|
||||||
if [[ -d "$speed_dir" ]]; then
|
if [[ -d "$speed_dir" ]]; then
|
||||||
case "$speed_type" in
|
case "$speed_type" in
|
||||||
current) speed_type="scaling_cur_freq" ;;
|
"current") speed_type="scaling_cur_freq" ;;
|
||||||
min) speed_type="scaling_min_freq" ;;
|
"min") speed_type="scaling_min_freq" ;;
|
||||||
max) speed_type="scaling_max_freq" ;;
|
"max") speed_type="scaling_max_freq" ;;
|
||||||
bios) speed_type="bios_limit" ;;
|
"bios") speed_type="bios_limit" ;;
|
||||||
scaling_current) speed_type="scaling_cur_freq" ;;
|
"scaling_current") speed_type="scaling_cur_freq" ;;
|
||||||
scaling_min) speed_type="scaling_min_freq" ;;
|
"scaling_min") speed_type="scaling_min_freq" ;;
|
||||||
scaling_max) speed_type="scaling_max_freq" ;;
|
"scaling_max") speed_type="scaling_max_freq" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Fallback to cpuinfo_max_freq if $speed_type fails
|
# Fallback to cpuinfo_max_freq if $speed_type fails
|
||||||
|
|
Loading…
Reference in a new issue