diff options
author | Andrea Shepard <andrea@torproject.org> | 2013-02-19 06:20:29 -0800 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-19 11:06:24 -0500 |
commit | 4c45b3d8455ecc14daeaacc02330f60603925d95 (patch) | |
tree | 7bba4f754a472db5df232a089a6c31390047415c /src/or/dirvote.c | |
parent | f4d5ca9b5e54dca2ce6a6e40f222a7bf889f41e4 (diff) | |
download | tor-4c45b3d8455ecc14daeaacc02330f60603925d95.tar.gz tor-4c45b3d8455ecc14daeaacc02330f60603925d95.zip |
Add unit test for unmeasured bandwidth clipping in consensus
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r-- | src/or/dirvote.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 96fc8a534f..a3fb03a478 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -1388,7 +1388,6 @@ networkstatus_compute_consensus(smartlist_t *votes, char *client_versions = NULL, *server_versions = NULL; smartlist_t *flags; const char *flavor_name; -#define DEFAULT_MAX_UNMEASURED_BW 20 uint32_t max_unmeasured_bw = DEFAULT_MAX_UNMEASURED_BW; int64_t G=0, M=0, E=0, D=0, T=0; /* For bandwidth weights */ const routerstatus_format_type_t rs_format = @@ -1612,7 +1611,6 @@ networkstatus_compute_consensus(smartlist_t *votes, } } - /* Add the actual router entries. */ { int *index; /* index[j] is the current index into votes[j]. */ |