From 075789eb91cd173d8ddddccdaa2010229a6ef0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 29 Sep 2024 12:25:46 +0200 Subject: [PATCH] fix typo in ParallelCommand --- src/Concerns/ParallelCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/ParallelCommand.php b/src/Concerns/ParallelCommand.php index 2a220b7e..df355929 100644 --- a/src/Concerns/ParallelCommand.php +++ b/src/Concerns/ParallelCommand.php @@ -61,7 +61,7 @@ trait ParallelCommand // 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) { - return $size->cdata; + return $cores->cdata; } else if ($darwin) { // Reset the size in case the pointer got written to (likely shouldn't happen) $size->cdata = FFI::sizeof($cores);