mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 12:34:24 +00:00
increase refresh_storage sleep when zero refreshable items
This commit is contained in:
parent
4c99e80449
commit
cd4147d772
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user