Skip to content

Commit

Permalink
cpu: Fix some typo
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Oct 16, 2024
1 parent 93f8c4e commit 1dc2db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/init_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ armv7* | armv8* | armhf) ARCH="arm" ;; # 32-bit ARM
*) ARCH="unknown" ;; # Default case if unknown
esac

if [[ "$ARCH" == "*arm*" ]]; then
if [[ "$ARCH" == *arm* ]]; then
policy_folders=($(ls -d /sys/devices/system/cpu/cpufreq/policy* | sort -V))
nr_clusters=${#policy_folders[@]}

Expand Down
2 changes: 1 addition & 1 deletion share/utils/cpu/cpu_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ cpu_menu() {
header_info+=("[] Governor: ${gov_tmp}")
unset gov_tmp
else
header_info=("[] Scaling freq: $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq)KHz - $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)KHz"
header_info+=("[] Scaling freq: $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq)KHz - $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)KHz"
"[] Governor: $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)")
fi

Expand Down

0 comments on commit 1dc2db0

Please sign in to comment.