浏览代码

the other half of my patch. more coming later.

svn:r9434
Roger Dingledine 18 年之前
父节点
当前提交
c6fd3c7158
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      doc/TODO
  2. 1 0
      src/or/or.h

+ 1 - 1
doc/TODO

@@ -30,7 +30,7 @@ N - Test guard unreachable logic; make sure that we actually attempt to
     Make sure that we don't freak out when the network is down.
     Make sure that we don't freak out when the network is down.
 
 
 Items for 0.1.2.x:
 Items for 0.1.2.x:
-R - weight dir requests by advertised bandwidth? with maybe a lower cutoff
+  o weight dir requests by advertised bandwidth? with maybe a lower cutoff
     than for tor traffic. perhaps also weighted by the expected size of
     than for tor traffic. perhaps also weighted by the expected size of
     the response.
     the response.
 
 

+ 1 - 0
src/or/or.h

@@ -2836,6 +2836,7 @@ int router_is_unreliable(routerinfo_t *router, int need_uptime,
                          int need_capacity, int need_guard);
                          int need_capacity, int need_guard);
 uint32_t router_get_advertised_bandwidth(routerinfo_t *router);
 uint32_t router_get_advertised_bandwidth(routerinfo_t *router);
 routerinfo_t *routerlist_sl_choose_by_bandwidth(smartlist_t *sl, int for_exit);
 routerinfo_t *routerlist_sl_choose_by_bandwidth(smartlist_t *sl, int for_exit);
+routerstatus_t *routerstatus_sl_choose_by_bandwidth(smartlist_t *sl);
 
 
 routerinfo_t *router_choose_random_node(const char *preferred,
 routerinfo_t *router_choose_random_node(const char *preferred,
                                         const char *excluded,
                                         const char *excluded,