Fixed m_sharesFailed initialization

pull/238/head
SChernykh 2023-01-23 13:13:08 +01:00
parent c841a2d2a9
commit 9b686673ae
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ Miner::Miner(p2pool* pool, uint32_t threads)
, m_nonceTimestamp(m_startTimestamp) , m_nonceTimestamp(m_startTimestamp)
, m_totalHashes(0) , m_totalHashes(0)
, m_sharesFound(0) , m_sharesFound(0)
, m_sharesFailed(0)
, m_job{} , m_job{}
, m_jobIndex{ 0 } , m_jobIndex{ 0 }
{ {
@ -142,6 +143,7 @@ void Miner::reset_share_counters()
{ {
m_totalHashes = 0; m_totalHashes = 0;
m_sharesFound = 0; m_sharesFound = 0;
m_sharesFailed = 0;
} }
void Miner::run(void* data) void Miner::run(void* data)