From: Nick Mathewson Date: Wed, 22 Sep 2010 05:30:23 +0000 (-0400) Subject: Changes to bug1959_part1 on review from arma. X-Git-Tag: tor-0.2.2.17-alpha~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ef9ccc88375b2dc5e421f2bf974b098ea9249a5;p=thirdparty%2Ftor.git Changes to bug1959_part1 on review from arma. Significant one: we want to say "not enough entry nodes descriptors, so we can't build circuits" only when we have 0 descriptors. --- diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 18d2721405..f88a99e046 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4779,10 +4779,10 @@ update_router_have_minimum_dir_info(void) /* Check for entry nodes. */ if (options->EntryNodes) { - count_usable_descriptors(&num_present, &num_usable, consensus, options, now, - options->EntryNodes); + count_usable_descriptors(&num_present, &num_usable, consensus, options, + now, options->EntryNodes); - if (num_usable && (num_present==0 || num_present < num_usable / 4)) { + if (num_usable && (num_present == 0)) { tor_snprintf(dir_info_status, sizeof(dir_info_status), "We have only %d/%d usable entry node descriptors.", num_present, num_usable);