소스 검색

Improve comment for routers_with_measured_bw static var in dirserv.c

Andrea Shepard 11 년 전
부모
커밋
0164f16f70
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/or/dirserv.c

+ 5 - 1
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);