mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-17 00:07:44 +00:00
Fix affinity for single thread mode.
This commit is contained in:
parent
cad15069c8
commit
5e6560cb07
1 changed files with 1 additions and 1 deletions
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue