aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-12-25 15:42:03 +0000
committerRoger Dingledine <arma@torproject.org>2008-12-25 15:42:03 +0000
commit4ff04fda77fa2968e77ff0c0746135592089c644 (patch)
treec42df703939e6bf01eb825c760bff2f36edd6dec
parenta12c3f2c86d967bce7253e78f4c42929b03cc87d (diff)
downloadtor-4ff04fda77fa2968e77ff0c0746135592089c644.tar.gz
tor-4ff04fda77fa2968e77ff0c0746135592089c644.zip
so which is it? TIME_MAX or INT_MAX? pick INT_MAX for now.
svn:r17772
-rw-r--r--src/or/directory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index aa9b76c68f..a062a6276a 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3332,20 +3332,20 @@ download_status_increment_failure(download_status_t *dls, int status_code,
if (dls->n_download_failures < schedule_len)
increment = schedule[dls->n_download_failures];
else if (dls->n_download_failures == IMPOSSIBLE_TO_DOWNLOAD)
- increment = TIME_MAX;
+ increment = INT_MAX;
else
increment = schedule[schedule_len-1];
if (increment < INT_MAX)
dls->next_attempt_at = now+increment;
else
- dls->next_attempt_at = TIME_MAX;
+ dls->next_attempt_at = INT_MAX;
if (item) {
if (dls->next_attempt_at == 0)
log_debug(LD_DIR, "%s failed %d time(s); I'll try again immediately.",
item, (int)dls->n_download_failures);
- else if (dls->next_attempt_at < TIME_MAX)
+ else if (dls->next_attempt_at < INT_MAX)
log_debug(LD_DIR, "%s failed %d time(s); I'll try again in %d seconds.",
item, (int)dls->n_download_failures,
(int)(dls->next_attempt_at-now));