Browse Source

only read processor count via sysconf on non-Windows platforms

nfactor-troky
Jeff Garzik 13 years ago committed by Con Kolivas
parent
commit
8e0e24936c
  1. 3
      cpu-miner.c

3
cpu-miner.c

@ -855,9 +855,12 @@ static void parse_arg (int key, char *arg) @@ -855,9 +855,12 @@ static void parse_arg (int key, char *arg)
default:
show_usage();
}
#ifndef WIN32
num_processors = sysconf(_SC_NPROCESSORS_ONLN);
if (!opt_n_threads)
opt_n_threads = num_processors;
#endif /* !WIN32 */
}
static void parse_config(void)

Loading…
Cancel
Save