Browse Source

increase refresh_storage sleep when zero refreshable items

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
cd4147d772
  1. 2
      libtorrent/src/kademlia/node.cpp

2
libtorrent/src/kademlia/node.cpp

@ -559,7 +559,7 @@ bool node_impl::refresh_storage() {
if( num_refreshable ) { if( num_refreshable ) {
m_next_storage_refresh = minutes(60) / num_refreshable + time_now(); m_next_storage_refresh = minutes(60) / num_refreshable + time_now();
} else { } 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 ); printf("node dht: next storage refresh in %d seconds\n", (m_next_storage_refresh - time_now())/1000000 );

Loading…
Cancel
Save