aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-03-18 11:58:30 -0700
committerAndrea Shepard <andrea@torproject.org>2013-03-18 11:58:30 -0700
commite9bdb695e82320fd320ba7e9c716ebdc51bfdeb0 (patch)
treed718ff5d6ce2bf5998d0adb2b52d77249c01a5f8 /src/or/dirserv.c
parentd64e5969f470a18fe15a6a2863cf4b2b59b1bd27 (diff)
downloadtor-e9bdb695e82320fd320ba7e9c716ebdc51bfdeb0.tar
tor-e9bdb695e82320fd320ba7e9c716ebdc51bfdeb0.tar.gz
Improve comment on router_counts_toward_thresholds()
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 47a4a7305..cf11e5013 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1878,7 +1878,10 @@ dirserv_thinks_router_is_hs_dir(const routerinfo_t *router,
#define ABSOLUTE_MIN_BW_VALUE_TO_CONSIDER 4096
/** Helper for dirserv_compute_performance_thresholds(): Decide whether to
- * include a router in our calculations, and return true iff we should. */
+ * include a router in our calculations, and return true iff we should; the
+ * require_mbw parameter is passed in by
+ * dirserv_compute_performance_thresholds() and controls whether we ever
+ * count routers with only advertised bandwidths */
static int
router_counts_toward_thresholds(const node_t *node, time_t now,
const digestmap_t *omit_as_sybil,