Merge pull request #78 from Spudz76/ocean-master-fixBenchMode
Fix upstream benchmark feature clash with MoBenchmark
This commit is contained in:
commit
41d5be9c65
1 changed files with 12 additions and 11 deletions
23
src/App.cpp
23
src/App.cpp
|
@ -86,20 +86,21 @@ int xmrig::App::exec()
|
||||||
}
|
}
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_MO_BENCHMARK
|
# ifdef XMRIG_FEATURE_MO_BENCHMARK
|
||||||
m_controller->pre_start();
|
if (pool.mode() != Pool::MODE_BENCHMARK) {
|
||||||
m_controller->config()->benchmark().set_controller(m_controller);
|
m_controller->pre_start();
|
||||||
|
m_controller->config()->benchmark().set_controller(m_controller);
|
||||||
|
|
||||||
if (m_controller->config()->benchmark().isNewBenchRun() || m_controller->config()->isRebenchAlgo()) {
|
if (m_controller->config()->benchmark().isNewBenchRun() || m_controller->config()->isRebenchAlgo()) {
|
||||||
if (m_controller->config()->isShouldSave()) {
|
if (m_controller->config()->isShouldSave()) {
|
||||||
m_controller->config()->save();
|
m_controller->config()->save();
|
||||||
|
}
|
||||||
|
m_controller->config()->benchmark().start();
|
||||||
|
} else {
|
||||||
|
m_controller->start();
|
||||||
}
|
}
|
||||||
m_controller->config()->benchmark().start();
|
} else
|
||||||
} else {
|
|
||||||
m_controller->start();
|
|
||||||
}
|
|
||||||
# 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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue