fix countProcessors error return value. (#5942)
This commit is contained in:
parent
cd51628f57
commit
2c5053caef
1 changed files with 1 additions and 1 deletions
|
|
@ -69,4 +69,4 @@ proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
|
|||
result = affinitySpaceTotal().int
|
||||
else:
|
||||
result = sysconf(SC_NPROCESSORS_ONLN)
|
||||
if result <= 0: result = 1
|
||||
if result <= 0: result = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue