miner: fix ignoring battery from command line

This commit is contained in:
moneromooo-monero
2017-07-31 08:36:57 +01:00
parent ab594cfee9
commit 87b5ede908

View File

@@ -382,7 +382,7 @@ namespace cryptonote
boost::thread::attributes attrs;
attrs.set_stack_size(THREAD_STACK_SIZE);
start(m_mine_address, m_threads_total, attrs, get_is_background_mining_enabled());
start(m_mine_address, m_threads_total, attrs, get_is_background_mining_enabled(), get_ignore_battery());
}
}
//-----------------------------------------------------------------------------------------------------