From 61edc6ed700d68dd63079069c2d28ebdf41824b3 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 1 Nov 2021 11:29:59 +0100 Subject: [PATCH] Reduce cache flush frequency to once per minute --- src/p2p_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p2p_server.cpp b/src/p2p_server.cpp index 143b7dc..cbf2f17 100644 --- a/src/p2p_server.cpp +++ b/src/p2p_server.cpp @@ -740,7 +740,7 @@ void P2PServer::on_timer() void P2PServer::flush_cache() { - if (!m_cache) { + if (!m_cache || ((m_timerCounter % 30) != 2)) { return; }