mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
ok, fair enough, some of these variables were time_t's after all
svn:r17777
This commit is contained in:
parent
4ff04fda77
commit
2a42986c96
@ -3339,13 +3339,13 @@ download_status_increment_failure(download_status_t *dls, int status_code,
|
|||||||
if (increment < INT_MAX)
|
if (increment < INT_MAX)
|
||||||
dls->next_attempt_at = now+increment;
|
dls->next_attempt_at = now+increment;
|
||||||
else
|
else
|
||||||
dls->next_attempt_at = INT_MAX;
|
dls->next_attempt_at = TIME_MAX;
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
if (dls->next_attempt_at == 0)
|
if (dls->next_attempt_at == 0)
|
||||||
log_debug(LD_DIR, "%s failed %d time(s); I'll try again immediately.",
|
log_debug(LD_DIR, "%s failed %d time(s); I'll try again immediately.",
|
||||||
item, (int)dls->n_download_failures);
|
item, (int)dls->n_download_failures);
|
||||||
else if (dls->next_attempt_at < INT_MAX)
|
else if (dls->next_attempt_at < TIME_MAX)
|
||||||
log_debug(LD_DIR, "%s failed %d time(s); I'll try again in %d seconds.",
|
log_debug(LD_DIR, "%s failed %d time(s); I'll try again in %d seconds.",
|
||||||
item, (int)dls->n_download_failures,
|
item, (int)dls->n_download_failures,
|
||||||
(int)(dls->next_attempt_at-now));
|
(int)(dls->next_attempt_at-now));
|
||||||
|
Loading…
Reference in New Issue
Block a user