mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-07-09 03:02:06 +00:00
Merge pull request #1737
69ab14d9
More robust battery status handling. (Dion Ahmetaj)
This commit is contained in:
commit
d2059dfab2
8 changed files with 81 additions and 29 deletions
|
@ -635,7 +635,7 @@ namespace cryptonote
|
|||
boost::thread::attributes attrs;
|
||||
attrs.set_stack_size(THREAD_STACK_SIZE);
|
||||
|
||||
if(!m_core.get_miner().start(adr, static_cast<size_t>(req.threads_count), attrs, req.do_background_mining))
|
||||
if(!m_core.get_miner().start(adr, static_cast<size_t>(req.threads_count), attrs, req.do_background_mining, req.ignore_battery))
|
||||
{
|
||||
res.status = "Failed, mining not started";
|
||||
LOG_PRINT_L0(res.status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue