mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 17:32:47 -05:00
Fix upstream benchmark feature clash with MoBenchmark
This commit is contained in:
@@ -86,6 +86,7 @@ int xmrig::App::exec()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_MO_BENCHMARK
|
# ifdef XMRIG_FEATURE_MO_BENCHMARK
|
||||||
|
if (pool.mode() != Pool::MODE_BENCHMARK) {
|
||||||
m_controller->pre_start();
|
m_controller->pre_start();
|
||||||
m_controller->config()->benchmark().set_controller(m_controller);
|
m_controller->config()->benchmark().set_controller(m_controller);
|
||||||
|
|
||||||
@@ -97,9 +98,9 @@ int xmrig::App::exec()
|
|||||||
} else {
|
} else {
|
||||||
m_controller->start();
|
m_controller->start();
|
||||||
}
|
}
|
||||||
# else
|
} else
|
||||||
m_controller->start();
|
|
||||||
# endif
|
# endif
|
||||||
|
m_controller->start();
|
||||||
|
|
||||||
rc = uv_run(uv_default_loop(), UV_RUN_DEFAULT);
|
rc = uv_run(uv_default_loop(), UV_RUN_DEFAULT);
|
||||||
uv_loop_close(uv_default_loop());
|
uv_loop_close(uv_default_loop());
|
||||||
|
|||||||
Reference in New Issue
Block a user