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".
This commit is contained in:
teor (Tim Wilson-Brown)
2016-01-12 14:15:22 +11:00
committed by Nick Mathewson
parent 16840e52e5
commit da968e558e
2 changed files with 26 additions and 8 deletions
+6
View File
@@ -0,0 +1,6 @@
o Minor fixes (fallback directories):
- Work around an issue where OnionOO supplies the entire history,
rather than the requested 120 days. Activate debug logging by
default. Fix other minor calculation and compatibility issues.
Closes ticket #18035. Patch by "starlight", merge fixes by
"teor". Not in any released version of tor.