1
0
Fork 0
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:
Samuel Štancl 2024-09-29 12:25:46 +02:00
parent f017b6509b
commit 075789eb91

View file

@ -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);