mirror of https://github.com/SChernykh/p2pool
Reduce cache flush frequency to once per minute
parent
d283f91eb0
commit
61edc6ed70
|
@ -740,7 +740,7 @@ void P2PServer::on_timer()
|
||||||
|
|
||||||
void P2PServer::flush_cache()
|
void P2PServer::flush_cache()
|
||||||
{
|
{
|
||||||
if (!m_cache) {
|
if (!m_cache || ((m_timerCounter % 30) != 2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue