Hardware::CPU: add extmodel helper
This commit is contained in:
parent
0f612f8459
commit
655c6f79b4
@ -68,6 +68,10 @@ module MacCPUs
|
||||
end
|
||||
end
|
||||
|
||||
def extmodel
|
||||
@extmodel ||= `/usr/sbin/sysctl -n machdep.cpu.extmodel`.to_i
|
||||
end
|
||||
|
||||
def cores
|
||||
@cores ||= `/usr/sbin/sysctl -n hw.ncpu`.to_i
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user