diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-04-11 11:43:40 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-04-14 21:45:05 -0400 |
commit | 52cadff0d60e393d7b75001aee304cdc1ab79c6b (patch) | |
tree | a7666a52c873ea1adccd522ffc32323cf277664c /src/or/routerlist.c | |
parent | 49696786fb1ffee28ea17f624591311b075f2842 (diff) | |
download | tor-52cadff0d60e393d7b75001aee304cdc1ab79c6b.tar tor-52cadff0d60e393d7b75001aee304cdc1ab79c6b.tar.gz |
Rename all fields which measure bw in kb to end with _kb
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 0c978e9d0..6ed168e55 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1793,7 +1793,7 @@ compute_weighted_bandwidths(const smartlist_t *sl, "old router selection algorithm."); return -1; } - this_bw = kb_to_bytes(node->rs->bandwidth); + this_bw = kb_to_bytes(node->rs->bandwidth_kb); } else if (node->ri) { /* bridge or other descriptor not in our consensus */ this_bw = bridge_get_advertised_bandwidth_bounded(node->ri); @@ -1944,7 +1944,7 @@ smartlist_choose_node_by_bandwidth(const smartlist_t *sl, is_guard = node->is_possible_guard; if (node->rs) { if (node->rs->has_bandwidth) { - this_bw = kb_to_bytes(node->rs->bandwidth); + this_bw = kb_to_bytes(node->rs->bandwidth_kb); } else { /* guess */ is_known = 0; } |