aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-02-19 06:20:29 -0800
committerNick Mathewson <nickm@torproject.org>2013-02-19 11:06:24 -0500
commit4c45b3d8455ecc14daeaacc02330f60603925d95 (patch)
tree7bba4f754a472db5df232a089a6c31390047415c /src/or/dirvote.c
parentf4d5ca9b5e54dca2ce6a6e40f222a7bf889f41e4 (diff)
downloadtor-4c45b3d8455ecc14daeaacc02330f60603925d95.tar
tor-4c45b3d8455ecc14daeaacc02330f60603925d95.tar.gz
Add unit test for unmeasured bandwidth clipping in consensus
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 96fc8a534..a3fb03a47 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]. */