mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 06:18:02 +00:00
strange android/boost compilation fix
This commit is contained in:
parent
658ed6054a
commit
b7fb1f3d3c
@ -556,13 +556,18 @@ bool node_impl::refresh_storage() {
|
|||||||
m_last_refreshed_item = m_storage_table.begin()->first;
|
m_last_refreshed_item = m_storage_table.begin()->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
time_duration sleepToRefresh;
|
||||||
if( num_refreshable ) {
|
if( num_refreshable ) {
|
||||||
m_next_storage_refresh = minutes(60) / num_refreshable + time_now();
|
sleepToRefresh = minutes(60) / num_refreshable;
|
||||||
} else {
|
} else {
|
||||||
m_next_storage_refresh = minutes(10) + time_now();
|
sleepToRefresh = minutes(10);
|
||||||
}
|
}
|
||||||
|
m_next_storage_refresh = time_now() + sleepToRefresh;
|
||||||
|
|
||||||
printf("node dht: next storage refresh in %d seconds\n", (m_next_storage_refresh - time_now())/1000000 );
|
#ifndef __ANDROID__
|
||||||
|
printf("node dht: next storage refresh in %d seconds\n",
|
||||||
|
static_cast<int>(sleepToRefresh/1000000) );
|
||||||
|
#endif
|
||||||
|
|
||||||
return did_something;
|
return did_something;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user