Added CMake option WITH_BENCHMARK.

This commit is contained in:
XMRig 2020-10-16 02:18:07 +07:00
parent ccebf6bb20
commit a152d6be42
No known key found for this signature in database
GPG key ID: 446A53638BE94409
19 changed files with 245 additions and 121 deletions

View file

@ -74,10 +74,7 @@ xmrig::Network::Network(Controller *controller) :
m_strategy = pools.createStrategy(m_state);
if (pools.donateLevel() > 0) {
const bool bench = (pools.data().size() == 1) && (pools.data().front().mode() == xmrig::Pool::MODE_BENCHMARK);
if (!bench) {
m_donate = new DonateStrategy(controller, this);
}
m_donate = new DonateStrategy(controller, this);
}
m_timer = new Timer(this, kTickInterval, kTickInterval);