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
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue