mirror of https://github.com/SChernykh/p2pool
Fix: never reset `m_cumulativeHashes`
Hashrates in stratum status can be wrong if `m_cumulativeHashes` decreases.pull/238/head
parent
02970e2f8f
commit
2aa7389c3f
|
@ -529,8 +529,7 @@ void StratumServer::reset_share_counters()
|
|||
{
|
||||
WriteLock lock(m_hashrateDataLock);
|
||||
|
||||
m_cumulativeHashes = 0;
|
||||
m_cumulativeHashesAtLastShare = 0;
|
||||
m_cumulativeHashesAtLastShare = m_cumulativeHashes;
|
||||
m_cumulativeFoundSharesDiff = 0.0;
|
||||
m_totalFoundShares = 0;
|
||||
m_totalFailedShares = 0;
|
||||
|
|
Loading…
Reference in New Issue