mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-22 02:14:30 +00:00
Fix: never reset m_cumulativeHashes
Hashrates in stratum status can be wrong if `m_cumulativeHashes` decreases.
This commit is contained in:
parent
02970e2f8f
commit
2aa7389c3f
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue