fix: ucode_platformid_mask is hexa (fixes #485)

This commit is contained in:
Stéphane Lesimple 2024-01-17 16:55:24 +01:00
parent 0f2edb1a71
commit 4e29fb5a21

View File

@ -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)" \