Fix affinity for single thread mode.
This commit is contained in:
2
xmrig.c
2
xmrig.c
@ -284,7 +284,7 @@ static void *miner_thread(void *userdata) {
|
||||
|
||||
struct cryptonight_ctx *persistentctx = (struct cryptonight_ctx *) create_persistent_ctx(thr_id);
|
||||
|
||||
if (cpu_info.count > 1 && opt_n_threads > 1 && opt_affinity != -1L) {
|
||||
if (cpu_info.count > 1 && opt_affinity != -1L) {
|
||||
affine_to_cpu_mask(thr_id, (unsigned long) opt_affinity);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user