increase refresh_storage sleep when zero refreshable items

This commit is contained in:
Miguel Freitas 2013-11-05 14:07:58 -02:00
parent 4c99e80449
commit cd4147d772

View File

@ -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 );