[or-cvs] r17777: {tor} ok, fair enough, some of these variables were time_t's after (tor/trunk/src/or)

arma at seul.org arma at seul.org
Thu Dec 25 20:16:22 UTC 2008


Author: arma
Date: 2008-12-25 15:16:22 -0500 (Thu, 25 Dec 2008)
New Revision: 17777

Modified:
   tor/trunk/src/or/directory.c
Log:
ok, fair enough, some of these variables were time_t's after all


Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c	2008-12-25 20:00:45 UTC (rev 17776)
+++ tor/trunk/src/or/directory.c	2008-12-25 20:16:22 UTC (rev 17777)
@@ -3339,13 +3339,13 @@
   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));



More information about the tor-commits mailing list