Disabled config save in case of auto adjusted threads
This commit is contained in:
parent
2979b2c872
commit
a783282739
2 changed files with 0 additions and 4 deletions
|
@ -141,8 +141,6 @@ int App::exec()
|
||||||
);
|
);
|
||||||
benchmark.start_perf_bench(xmrig::PerfAlgo::PA_CN); // start benchmarking from first PerfAlgo in the list
|
benchmark.start_perf_bench(xmrig::PerfAlgo::PA_CN); // start benchmarking from first PerfAlgo in the list
|
||||||
} else {
|
} else {
|
||||||
// save config here to have option to store automatically generated "threads"
|
|
||||||
if (m_controller->config()->isShouldSave()) m_controller->config()->save();
|
|
||||||
m_controller->network()->connect();
|
m_controller->network()->connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -198,13 +198,11 @@ bool xmrig::Config::finalize()
|
||||||
|
|
||||||
if (!m_threads[pa].count) {
|
if (!m_threads[pa].count) {
|
||||||
m_threads[pa].count = Cpu::optimalThreadsCount(size, m_maxCpuUsage);
|
m_threads[pa].count = Cpu::optimalThreadsCount(size, m_maxCpuUsage);
|
||||||
m_shouldSave = true;
|
|
||||||
}
|
}
|
||||||
else if (m_safe) {
|
else if (m_safe) {
|
||||||
const size_t count = Cpu::optimalThreadsCount(size, m_maxCpuUsage);
|
const size_t count = Cpu::optimalThreadsCount(size, m_maxCpuUsage);
|
||||||
if (m_threads[pa].count > count) {
|
if (m_threads[pa].count > count) {
|
||||||
m_threads[pa].count = count;
|
m_threads[pa].count = count;
|
||||||
m_shouldSave = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue