aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-03-18 12:04:41 -0700
committerAndrea Shepard <andrea@torproject.org>2013-03-18 12:04:41 -0700
commit0164f16f70d17da202c8085e620e9cf043eda0b3 (patch)
tree4d32821017aead80b1430eb8f621c3c13cb0307a /src/or/dirserv.c
parente9bdb695e82320fd320ba7e9c716ebdc51bfdeb0 (diff)
downloadtor-0164f16f70d17da202c8085e620e9cf043eda0b3.tar
tor-0164f16f70d17da202c8085e620e9cf043eda0b3.tar.gz
Improve comment for routers_with_measured_bw static var in dirserv.c
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index cf11e5013..5aed3fb6b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -66,7 +66,11 @@ static cached_dir_t *the_directory = NULL;
/** For authoritative directories: the current (v1) network status. */
static cached_dir_t the_runningrouters;
-/** Total number of routers with measured bandwidth */
+/** Total number of routers with measured bandwidth; this is set by
+ * dirserv_count_measured_bws() before the loop in
+ * dirserv_generate_networkstatus_vote_obj() and checked by
+ * dirserv_get_credible_bandwidth() and
+ * dirserv_compute_performance_thresholds() */
static int routers_with_measured_bw = 0;
static void directory_remove_invalid(void);