Merge pull request #78 from Spudz76/ocean-master-fixBenchMode

Fix upstream benchmark feature clash with MoBenchmark
This commit is contained in:
MoneroOcean 2021-11-29 07:37:16 -08:00 committed by GitHub
commit 41d5be9c65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,7 @@ int xmrig::App::exec()
}
# ifdef XMRIG_FEATURE_MO_BENCHMARK
if (pool.mode() != Pool::MODE_BENCHMARK) {
m_controller->pre_start();
m_controller->config()->benchmark().set_controller(m_controller);
@ -97,9 +98,9 @@ int xmrig::App::exec()
} else {
m_controller->start();
}
# else
m_controller->start();
} else
# endif
m_controller->start();
rc = uv_run(uv_default_loop(), UV_RUN_DEFAULT);
uv_loop_close(uv_default_loop());