Skip to content

Commit

Permalink
fix: ucode_platformid_mask is hexa (fixes #485)
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Feb 15, 2024
1 parent 0f2edb1 commit 4e29fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectre-meltdown-checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ is_cpu_affected()
fixed_ucode_ver=$(( 0x$(echo "$tuple" | cut -d, -f2) ))
affected_fmspi=$(echo "$tuple" | cut -d, -f1)
affected_fms=$(echo "$affected_fmspi" | cut -d/ -f1)
ucode_platformid_mask=$(echo "$affected_fmspi" | cut -d/ -f2)
ucode_platformid_mask=0x$(echo "$affected_fmspi" | cut -d/ -f2)
affected_cpuid=$(fms2cpuid \
0x"$(echo "$affected_fms" | cut -d- -f1)" \
0x"$(echo "$affected_fms" | cut -d- -f2)" \
Expand Down

0 comments on commit 4e29fb5

Please sign in to comment.