Check and save any autosized algos before launching the moBenchmark

This commit is contained in:
Tony Butler 2021-05-17 01:13:06 -06:00
parent b0beffc4f0
commit 50bffd39d8
2 changed files with 4 additions and 0 deletions

View file

@ -90,6 +90,9 @@ int xmrig::App::exec()
m_controller->config()->benchmark().set_controller(m_controller);
if (m_controller->config()->benchmark().isNewBenchRun() || m_controller->config()->isRebenchAlgo()) {
if (m_controller->config()->isShouldSave()) {
m_controller->config()->save();
}
m_controller->config()->benchmark().start();
} else {
m_controller->start();