]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix log message when we have too few dirauths
authorSebastian Hahn <sebastian@torproject.org>
Sun, 6 Mar 2011 23:03:09 +0000 (00:03 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Sun, 6 Mar 2011 23:06:36 +0000 (00:06 +0100)
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.

src/or/dirvote.c

index 529b45c7d56112eb84596bc79dbacbc92f7c92f6..9273dbc90d42d237d56892a66009dba94dbb061b 100644 (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);