mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-13 06:31:51 +00:00
Fix number-of-threads init logic on Windows
This commit is contained in:
parent
8e0e24936c
commit
4d6be0c194
@ -856,7 +856,10 @@ static void parse_arg (int key, char *arg)
|
|||||||
show_usage();
|
show_usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifdef WIN32
|
||||||
|
if (!opt_n_threads)
|
||||||
|
opt_n_threads = 1;
|
||||||
|
#else
|
||||||
num_processors = sysconf(_SC_NPROCESSORS_ONLN);
|
num_processors = sysconf(_SC_NPROCESSORS_ONLN);
|
||||||
if (!opt_n_threads)
|
if (!opt_n_threads)
|
||||||
opt_n_threads = num_processors;
|
opt_n_threads = num_processors;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user