aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authorDion Ahmetaj <ahmetajd@coned.com>2017-02-02 12:24:42 -0500
committerDion Ahmetaj <Dion Ahmetaj>2017-02-10 18:07:39 -0500
commit21a1e0252f3dd08ff7d067c9e7f2b9454c615d27 (patch)
tree02f200c0f3718f2d2f23048977d19895c86ccb4e /src/cryptonote_basic
parentBackground/smart mining. If a users' computer is plugged into a power (diff)
downloadmonero-21a1e0252f3dd08ff7d067c9e7f2b9454c615d27.tar.xz
Set background mining started bool to false on bg thread start. If mining::stop then mining::start, idle logic is re-run instead of starting immediately (if it was running before stop).
Diffstat (limited to 'src/cryptonote_basic')
-rw-r--r--src/cryptonote_basic/miner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index 2b70df643..d424dd5e7 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -526,6 +526,7 @@ namespace cryptonote
uint64_t prev_total_time, current_total_time;
uint64_t prev_idle_time, current_idle_time;
uint64_t previous_process_time = 0, current_process_time = 0;
+ m_is_background_mining_enabled = false;
if(!get_system_times(prev_total_time, prev_idle_time))
{