[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/release-0.2.2] Fix log message when we have too few dirauths



commit 2f8e96b5535481e157486944c8d7637f31e1a197
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date:   Mon Mar 7 00:03:09 2011 +0100

    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.
---
 src/or/dirvote.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 529b45c..9273dbc 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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits