Fix affinity for single thread mode.

This commit is contained in:
XMRig 2017-04-21 12:13:49 +03:00
parent cad15069c8
commit 5e6560cb07

View file

@ -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);
}