mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
Disabled config save in case of auto adjusted threads
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user