aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-06 12:37:25 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-06 12:37:25 +0000
commit55971c71b610491aab250bd1240089dd2bf8ed0a (patch)
tree39cfd3fb0bb5e481323d9e34cedd88a939085d8d
parentd1aafdc51921b6b7e1634b369f98dfd6b5eb1b99 (diff)
downloadtor-55971c71b610491aab250bd1240089dd2bf8ed0a.tar.gz
tor-55971c71b610491aab250bd1240089dd2bf8ed0a.zip
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. svn:r13399
-rw-r--r--src/or/routerlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 9e4e0c0918..5219eb7ebd 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -210,7 +210,7 @@ trusted_dirs_load_certs_from_string(const char *contents, int from_store)
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 @@ update_router_have_minimum_dir_info(void)
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;