mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-23 03:49:23 +00:00
SideChain: count miners in the last 48 hours
This commit is contained in:
parent
75d62c0303
commit
0869326f39
1 changed files with 2 additions and 2 deletions
|
@ -738,9 +738,9 @@ uint64_t SideChain::miner_count()
|
||||||
|
|
||||||
MutexLock lock(m_sidechainLock);
|
MutexLock lock(m_sidechainLock);
|
||||||
|
|
||||||
// Delete wallets that weren't seen for more than 24 hours and return how many remain
|
// Delete wallets that weren't seen for more than 48 hours and return how many remain
|
||||||
for (auto it = m_seenWallets.begin(); it != m_seenWallets.end();) {
|
for (auto it = m_seenWallets.begin(); it != m_seenWallets.end();) {
|
||||||
if (it->second + 24 * 60 * 60 <= cur_time) {
|
if (it->second + 48 * 60 * 60 <= cur_time) {
|
||||||
it = m_seenWallets.erase(it);
|
it = m_seenWallets.erase(it);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue