diff --git a/src/App.cpp b/src/App.cpp index 01d1fed7..1f6fc2fb 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -141,8 +141,6 @@ int App::exec() ); benchmark.start_perf_bench(xmrig::PerfAlgo::PA_CN); // start benchmarking from first PerfAlgo in the list } 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(); } diff --git a/src/core/Config.cpp b/src/core/Config.cpp index aab48cf7..0fc1bc5e 100644 --- a/src/core/Config.cpp +++ b/src/core/Config.cpp @@ -198,13 +198,11 @@ bool xmrig::Config::finalize() if (!m_threads[pa].count) { m_threads[pa].count = Cpu::optimalThreadsCount(size, m_maxCpuUsage); - m_shouldSave = true; } else if (m_safe) { const size_t count = Cpu::optimalThreadsCount(size, m_maxCpuUsage); if (m_threads[pa].count > count) { m_threads[pa].count = count; - m_shouldSave = true; } }