mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
only read processor count via sysconf on non-Windows platforms
This commit is contained in:
parent
f992c92fa8
commit
8e0e24936c
@ -855,9 +855,12 @@ static void parse_arg (int key, char *arg)
|
|||||||
default:
|
default:
|
||||||
show_usage();
|
show_usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
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;
|
||||||
|
#endif /* !WIN32 */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void parse_config(void)
|
static void parse_config(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user