[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Clarify a comment in compute_frac_paths_available



commit e2537a5982b9003b14daee768cae33561f5f04bd
Author: teor <teor2345@xxxxxxxxx>
Date:   Wed Dec 14 10:25:01 2016 +1100

    Clarify a comment in compute_frac_paths_available
---
 src/or/nodelist.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 3f2e111..2bcedbf 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -1728,9 +1728,9 @@ count_usable_descriptors(int *num_present, int *num_usable,
  * If **<b>status_out</b> is present, allocate a new string and print the
  * available percentages of guard, middle, and exit nodes to it, noting
  * whether there are exits in the consensus.
- * If there are no guards in the consensus,
- * we treat the exit fraction as 100%.
- */
+ * If there are no exits in the consensus, we treat the exit fraction as 100%,
+ * but set router_have_consensus_path() so that we can only build internal
+ * paths. */
 static double
 compute_frac_paths_available(const networkstatus_t *consensus,
                              const or_options_t *options, time_t now,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits