aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-12-25 20:16:22 +0000
committerRoger Dingledine <arma@torproject.org>2008-12-25 20:16:22 +0000
commit2a42986c96728da8b79f4a9c12040a0826b7a17f (patch)
treea754fdf372644ea804b2ccd07a1d46a95fa62b5a
parent4ff04fda77fa2968e77ff0c0746135592089c644 (diff)
downloadtor-2a42986c96728da8b79f4a9c12040a0826b7a17f.tar.gz
tor-2a42986c96728da8b79f4a9c12040a0826b7a17f.zip
ok, fair enough, some of these variables were time_t's after all
svn:r17777
-rw-r--r--src/or/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index a062a6276a..5a1de4317a 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3339,13 +3339,13 @@ download_status_increment_failure(download_status_t *dls, int status_code,
if (increment < INT_MAX)
dls->next_attempt_at = now+increment;
else
- dls->next_attempt_at = INT_MAX;
+ dls->next_attempt_at = TIME_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 < 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.",
item, (int)dls->n_download_failures,
(int)(dls->next_attempt_at-now));