Skip to content

Commit 5ab0620

Browse files
Update Library/Homebrew/extend/os/linux/hardware/cpu.rb
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 279c283 commit 5ab0620

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Library/Homebrew/extend/os/linux/hardware

‎Library/Homebrew/extend/os/linux/hardware/cpu.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def optimization_flags
2424
sig { returns(Symbol) }
2525
def family
2626
if arm?
27-
implementer = cpuinfo[/^cpu implementer\s*: ([a-z0-9]*)$/, 1].to_i
28-
cpu_model = cpuinfo[/^cpu part\s*: ([a-z0-9]*)$/, 1].to_i
27+
implementer = cpuinfo[/^CPU implementer\s*: (0x\h+)$/i, 1].to_s.hex
28+
cpu_model = cpuinfo[/^CPU part\s*: (0x\h+)$/i, 1].to_s.hex
2929

3030
arm_family(implementer, cpu_model)
3131
elsif intel?

0 commit comments

Comments
 (0)