[or-cvs] r13399: if we have a networkstatus concensus but only 0 or 1 descrip (tor/trunk/src/or)

arma at seul.org arma at seul.org
Wed Feb 6 12:37:25 UTC 2008


Author: arma
Date: 2008-02-06 07:37:25 -0500 (Wed, 06 Feb 2008)
New Revision: 13399

Modified:
   tor/trunk/src/or/routerlist.c
Log:
if we have a networkstatus concensus but only 0 or 1 descriptors,
don't declare that we're ready to build circuits yet. we're not.


Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2008-02-06 12:36:04 UTC (rev 13398)
+++ tor/trunk/src/or/routerlist.c	2008-02-06 12:37:25 UTC (rev 13399)
@@ -210,7 +210,7 @@
   return 0;
 }
 
-/** Save all v3 key certifiacates to the cached-certs file. */
+/** Save all v3 key certificates to the cached-certs file. */
 void
 trusted_dirs_flush_certs_to_disk(void)
 {
@@ -4100,10 +4100,10 @@
     tor_snprintf(dir_info_status, sizeof(dir_info_status),
             "We have only %d/%d usable descriptors.", num_present, num_usable);
     res = 0;
-  } else if (num_usable < 2) {
+  } else if (num_present < 2) {
     tor_snprintf(dir_info_status, sizeof(dir_info_status),
-                 "Only %d usable descriptor%s known!", num_usable,
-                 num_usable ? "" : "s");
+                 "Only %d usable descriptor%s known!", num_present,
+                 num_present ? "" : "s");
     res = 0;
   } else {
     res = 1;



More information about the tor-commits mailing list