mirror of
https://github.com/monero-project/monero.git
synced 2025-07-23 13:40:43 -04:00
More robust battery status handling.
Added an extra path to check for linux power supply status. Added ignore battery option. If set to true, then when we can't figure out the power status, we'll assume the system is plugged in.
This commit is contained in:
parent
3f171b931f
commit
69ab14d91e
8 changed files with 81 additions and 29 deletions
|
@ -106,7 +106,7 @@ public:
|
|||
|
||||
bool print_transaction_pool_stats();
|
||||
|
||||
bool start_mining(cryptonote::account_public_address address, uint64_t num_threads, bool testnet, bool do_background_mining);
|
||||
bool start_mining(cryptonote::account_public_address address, uint64_t num_threads, bool testnet, bool do_background_mining = false, bool ignore_battery = false);
|
||||
|
||||
bool stop_mining();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue