[tor-commits] [doctor/master] Fix suppression for new relays being out of sync for badexit

atagar at torproject.org atagar at torproject.org
Sun Mar 6 18:48:15 UTC 2016


commit cc32159ded693790e3098c7aa0ebb6bc56915ecd
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Mar 6 10:51:25 2016 -0800

    Fix suppression for new relays being out of sync for badexit
    
    Baka, had the comparison inverted so we were *only* getting new relays.
---
 consensus_health_checker.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/consensus_health_checker.py b/consensus_health_checker.py
index b515b03..d122c27 100755
--- a/consensus_health_checker.py
+++ b/consensus_health_checker.py
@@ -678,8 +678,9 @@ def bad_exits_in_sync(latest_consensus, consensuses, votes):
     # part of normal network churn.
 
     desc = votes[list(with_flag)[0]].routers[fingerprint]
+    uptime = (datetime.datetime.now() - desc.published).total_seconds()
 
-    if not_in_consensus and (datetime.datetime.now() - desc.published).total_seconds() > 3600:
+    if not_in_consensus and uptime < 3600:
       continue
 
     attr = ['with flag: %s' % ', '.join(with_flag)]



More information about the tor-commits mailing list