Merge commit 'sebastian/bug2663' into maint-0.2.2

This commit is contained in:
Roger Dingledine 2011-03-11 20:37:21 -05:00
commit 600ad7bf8d

View File

@ -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);