Permalink
Browse files

Use _SC_NPROCESSORS_CONF instead of _SC_NPROCESSORS_ONLN

  • Loading branch information...
1 parent 21cba02 commit 003d1f1f849cbb8b2f3be8146ec19ae8b3a96573 @pooler committed Jun 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cpu-miner.c
View
@@ -998,8 +998,8 @@ int main(int argc, char *argv[])
SYSTEM_INFO sysinfo;
GetSystemInfo(&sysinfo);
num_processors = sysinfo.dwNumberOfProcessors;
-#elif defined(_SC_NPROCESSORS_ONLN)
- num_processors = sysconf(_SC_NPROCESSORS_ONLN);
+#elif defined(_SC_NPROCESSORS_CONF)
+ num_processors = sysconf(_SC_NPROCESSORS_CONF);
#elif defined(HW_NCPU)
int req[] = { CTL_HW, HW_NCPU };
size_t len = sizeof(num_processors);

0 comments on commit 003d1f1

Please sign in to comment.