aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-03-07 00:03:09 +0100
committerSebastian Hahn <sebastian@torproject.org>2011-03-07 00:06:36 +0100
commit2f8e96b5535481e157486944c8d7637f31e1a197 (patch)
tree53b177450632ce1bbff34e652c08d6367047c4b7 /src/or/dirvote.c
parent35fcec38809f9805326d8e2c81bad33d0ef000ae (diff)
downloadtor-2f8e96b5535481e157486944c8d7637f31e1a197.tar.gz
tor-2f8e96b5535481e157486944c8d7637f31e1a197.zip
Fix log message when we have too few dirauths
The calculation of when to send the logmessage was correct, but we didn't give the correct number of relays required: We want more than half of all authorities we know about. Fixes bug 2663.
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 529b45c7d5..9273dbc90d 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -3080,7 +3080,7 @@ dirvote_compute_consensuses(void)
n_votes = smartlist_len(pending_vote_list);
if (n_votes <= n_voters/2) {
log_warn(LD_DIR, "We don't have enough votes to generate a consensus: "
- "%d of %d", n_votes, n_voters/2);
+ "%d of %d", n_votes, n_voters/2+1);
goto err;
}
tor_assert(pending_vote_list);