fix countProcessors error return value. (#5942)

This commit is contained in:
Parashurama
2017-06-05 13:21:57 +02:00
committed by Andreas Rumpf
parent cd51628f57
commit 2c5053caef

View File

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