[or-cvs] r17772: {tor} so which is it? TIME_MAX or INT_MAX? pick INT_MAX for now. (tor/trunk/src/or)

arma at seul.org arma at seul.org
Thu Dec 25 15:42:03 UTC 2008


Author: arma
Date: 2008-12-25 10:42:03 -0500 (Thu, 25 Dec 2008)
New Revision: 17772

Modified:
   tor/trunk/src/or/directory.c
Log:
so which is it? TIME_MAX or INT_MAX? pick INT_MAX for now.


Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c	2008-12-25 15:37:47 UTC (rev 17771)
+++ tor/trunk/src/or/directory.c	2008-12-25 15:42:03 UTC (rev 17772)
@@ -3332,20 +3332,20 @@
   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));



More information about the tor-commits mailing list