mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-05 21:08:20 -05:00
Code formatting script was using `sysctl -n hw.physicalcpu` on macOS machines to get the CPU count. This command returns the physical CPUs. `nproc`, however, returns logical CPU count on Linux machines. It should be `sysctl -n hw.logicalcpu` to make it consistent with its Linux counterpart. But there also another way. `getconf _NPROCESSORS_ONLN` gives the number of logical CPUs on both Linux and macOS.
1.1 KiB
Executable File
1.1 KiB
Executable File