commit cc32159ded693790e3098c7aa0ebb6bc56915ecd Author: Damian Johnson atagar@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)]
tor-commits@lists.torproject.org