mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS was odr-used, so required a definition.
Instead of adding a declaration to cpp file, I changed it to non odr-used.
This commit is contained in:
parent
3f171b931f
commit
a493c0b196
1 changed files with 3 additions and 4 deletions
|
@ -564,10 +564,9 @@ namespace cryptonote
|
||||||
|
|
||||||
// If we're already mining, then sleep for the miner monitor interval.
|
// If we're already mining, then sleep for the miner monitor interval.
|
||||||
// If we're NOT mining, then sleep for the idle monitor interval
|
// If we're NOT mining, then sleep for the idle monitor interval
|
||||||
boost::this_thread::sleep_for(
|
uint64_t sleep_for_seconds = BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS;
|
||||||
m_is_background_mining_started ?
|
if( !m_is_background_mining_started ) sleep_for_seconds = get_min_idle_seconds();
|
||||||
boost::chrono::seconds( BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS ) :
|
boost::this_thread::sleep_for(boost::chrono::seconds(sleep_for_seconds));
|
||||||
boost::chrono::seconds( get_min_idle_seconds() ) );
|
|
||||||
}
|
}
|
||||||
catch(const boost::thread_interrupted&)
|
catch(const boost::thread_interrupted&)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue