Skip to content

Commit

Permalink
common: Fix the version check of turbostat
Browse files Browse the repository at this point in the history
Check the version >= 2024 instead of == 2024

Signed-off-by: Yi Sun <yi.sun@intel.com>
  • Loading branch information
ysun committed Feb 16, 2025
1 parent bf73909 commit 445fa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BM/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ check_turbostat_ver() {
turbostat_output=$(turbostat -v 2>&1)
version=$(echo "$turbostat_output" | grep -o "version [0-9]*" | cut -d ' ' -f 2)

if [[ "$version" == 2024 ]]; then
if [[ "$version" -ge 2024 ]]; then
test_print_trc "The turbostat version is 2024"
else
block_test "Please ensure you are using the most recent version of turbostat by recompiling
Expand Down

0 comments on commit 445fa08

Please sign in to comment.