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