]> git.ipfire.org Git - thirdparty/tor.git/commit
Use correct units for dirserv_get_{credible_bandwidth,bandwidth_for_router}
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Apr 2013 14:24:11 +0000 (10:24 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Apr 2013 14:26:17 +0000 (10:26 -0400)
commitec4ee3197fb0891a094a5fc4860c0b94eefee3c7
tree94cdf56ed4b07ed53572063e2c7cb64a3158b2bc
parent922ab0883d2f037d18cfc02083c68777e4dfb349
Use correct units for dirserv_get_{credible_bandwidth,bandwidth_for_router}

We were mixing bandwidth file entries (which are in kilobytes) with
router_get_advertised_bw() entries, which were in bytes.

Also, use router_get_advertised_bandwidth_capped() for credible_bandwidth.
src/or/dirserv.c