This reverts commit 00c31e8766.
This commit is contained in:
parent
f5b4d9a2e5
commit
889b745b2b
11 changed files with 21 additions and 44 deletions
|
|
@ -79,7 +79,7 @@ proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
|
|||
len: csize
|
||||
mib[0] = CTL_HW
|
||||
mib[1] = HW_AVAILCPU
|
||||
len = csize sizeof(numCPU)
|
||||
len = sizeof(numCPU)
|
||||
discard sysctl(addr(mib), 2, addr(numCPU), len, nil, 0)
|
||||
if numCPU < 1:
|
||||
mib[1] = HW_NCPU
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue