Merge pull request #55 from Spudz76/ocean-master-saveBeforeBenchmark
Check and save any autosized algos before launching the moBenchmark
This commit is contained in:
commit
b765a6d3fb
2 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,9 @@ int xmrig::App::exec()
|
||||||
m_controller->config()->benchmark().set_controller(m_controller);
|
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()) {
|
||||||
|
m_controller->config()->save();
|
||||||
|
}
|
||||||
m_controller->config()->benchmark().start();
|
m_controller->config()->benchmark().start();
|
||||||
} else {
|
} else {
|
||||||
m_controller->start();
|
m_controller->start();
|
||||||
|
|
|
@ -77,6 +77,7 @@ rapidjson::Value MoBenchmark::toJSON(rapidjson::Document &doc) const
|
||||||
Value obj(kObjectType);
|
Value obj(kObjectType);
|
||||||
|
|
||||||
for (const auto &a : m_controller->miner()->algorithms()) {
|
for (const auto &a : m_controller->miner()->algorithms()) {
|
||||||
|
if (algo_perf[a.id()] == 0.0f) continue;
|
||||||
obj.AddMember(StringRef(a.shortName()), algo_perf[a.id()], allocator);
|
obj.AddMember(StringRef(a.shortName()), algo_perf[a.id()], allocator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue