CPU: fix M2 detection
This commit is contained in:
parent
06b7573e0b
commit
449b872916
@ -152,7 +152,11 @@ module Hardware
|
||||
end
|
||||
|
||||
def sysctl_int(key)
|
||||
sysctl_n(key).to_i
|
||||
if (x = sysctl_n(key).to_i) >= 0
|
||||
x
|
||||
else
|
||||
x & 0xffffffff
|
||||
end
|
||||
end
|
||||
|
||||
def sysctl_n(*keys)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user