From cd4147d772a18f6b3b5a8d86f5bbdf59d5ebcd52 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 5 Nov 2013 14:07:58 -0200 Subject: [PATCH] increase refresh_storage sleep when zero refreshable items --- libtorrent/src/kademlia/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index 226e1d31..f6fe01e7 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -559,7 +559,7 @@ bool node_impl::refresh_storage() { if( num_refreshable ) { m_next_storage_refresh = minutes(60) / num_refreshable + time_now(); } else { - m_next_storage_refresh = minutes(1) + time_now(); + m_next_storage_refresh = minutes(10) + time_now(); } printf("node dht: next storage refresh in %d seconds\n", (m_next_storage_refresh - time_now())/1000000 );