]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix various issues with fallback directory data handling
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 12 Jan 2016 03:15:22 +0000 (14:15 +1100)
committerNick Mathewson <nickm@torproject.org>
Tue, 12 Jan 2016 15:10:05 +0000 (10:10 -0500)
commitda968e558e89b3ee9201d6c9cdd339ef48979071
tree7fc20c8c788aa4a5240474d144aea0030283feec
parent16840e52e594e221069efc9bf7b65ebfb5e2d639
Fix various issues with fallback directory data handling

* support maximum history age in _avg_generic_history()
* fix division-by-zero trap in _avg_generic_history()
* skip missing (i.e. null/None) intervals in _avg_generic_history()
* Python timedelta.total_seconds() function not available in 2.6;
  replace with equivalent expression
* set DEBUG logging level to make relay exclusion reasons visible
* move CUTOFF_GUARD test to end in order to expose more exclusion
  reasons

Patch by "starlight", merge modifications by "teor".
changes/bug18035 [new file with mode: 0644]
scripts/maint/updateFallbackDirs.py