mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
fix sysctl string
This commit is contained in:
parent
b01c16f4fc
commit
f017b6509b
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ trait ParallelCommand
|
|||
$size->cdata = FFI::sizeof($cores);
|
||||
|
||||
// perflevel0 refers to P-cores on M-series, and the entire CPU on Intel Macs
|
||||
if ($darwin && $ffi->sysctlbyname('hw.xperflevel0.logicalcpu', FFI::addr($cores), FFI::addr($size), null, 0) === 0) {
|
||||
if ($darwin && $ffi->sysctlbyname('hw.perflevel0.logicalcpu', FFI::addr($cores), FFI::addr($size), null, 0) === 0) {
|
||||
return $size->cdata;
|
||||
} else if ($darwin) {
|
||||
// Reset the size in case the pointer got written to (likely shouldn't happen)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue