commit 6b6d16c5afd8e9f8e31b0cd3a856a218bc244b91 Author: Damian Johnson atagar@torproject.org Date: Fri Feb 16 16:56:08 2018 -0800
Properly time suppress new flag count notices
The counts vary every hour so time based suppressions didn't work. --- consensus_health_checker.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/consensus_health_checker.py b/consensus_health_checker.py index 5554eee..a4a84e6 100755 --- a/consensus_health_checker.py +++ b/consensus_health_checker.py @@ -136,6 +136,11 @@ class Issue(object): attr.update({'authority': '', 'time_taken': '', 'median_time': '', 'authority_times': ''})
return CONFIG['msg'][self._template].format(**attr).replace(' ', '_') + elif self._template == 'FLAG_COUNT_DIFFERS': + attr = dict(self._attr) + attr.update({'consensus_count': 0, 'vote_count': 0}) + + return CONFIG['msg'][self._template].format(**attr).replace(' ', '_') else: return self.get_message().replace(' ', '_')
tor-commits@lists.torproject.org