mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Hide consensus download interval, depending on TestingTorNetwork, in a macro.
This commit is contained in:
parent
4d54b9774d
commit
c132427db4
@ -1450,11 +1450,10 @@ run_scheduled_events(time_t now)
|
||||
|
||||
/* How often do we check whether we should download network status
|
||||
* documents? */
|
||||
#define CHECK_NETWORKSTATUS_DOWNLOAD_INTERVAL (60)
|
||||
#define networkstatus_dl_interval(o) ((o)->TestingTorNetwork ? 1 : 60)
|
||||
|
||||
if (time_to_download_networkstatus < now && !options->DisableNetwork) {
|
||||
time_to_download_networkstatus = now +
|
||||
options->TestingTorNetwork ? 1 : CHECK_NETWORKSTATUS_DOWNLOAD_INTERVAL;
|
||||
time_to_download_networkstatus = now + networkstatus_dl_interval(options);
|
||||
update_networkstatus_downloads(now);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user