[tor-commits] [sbws/master] fixup! new: v3bwfile: Add header and lines exclusion keys

juga at torproject.org juga at torproject.org
Thu Mar 21 18:30:42 UTC 2019


commit 1f2f14f117cc27e0b4e7b0de9dc5fa766eef6ef4
Author: juga0 <juga at riseup.net>
Date:   Thu Mar 14 11:45:23 2019 +0000

    fixup! new: v3bwfile: Add header and lines exclusion keys
---
 sbws/lib/v3bwfile.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 2c1e745..99b3914 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -51,8 +51,15 @@ BW_HEADER_KEYVALUES_RECENT_MEASUREMENTS_EXCLUDED = [
     # This is the sum of the following 3 + not success results
     # 'recent_measurement_exclusion_count',
     'recent_measurement_exclusion_not_success_count',
+    # The relay measurements are not done in X time away from each other.
+    # By default this is 1 day.
     'recent_measurement_exclusion_not_distanciated_count',
+    # The relay measurements are not X time recent.
+    # By default this is 5 days, which is the same time the older
+    # the measurements can be by default.
     'recent_measurement_exclusion_not_recent_count',
+    # The minimum number of measurement a relay needs to have.
+    # By default this is two.
     'recent_measurement_exclusion_not_min_num_count',
 ]
 # Added in #29591
@@ -145,8 +152,14 @@ BANDWIDTH_LINE_KEY_VALUES_MONITOR = [
     # that were excluded by a rule, for this relay.
     # This would be the sum of the following 3 + the number of not success
     # 'relay_recent_measurement_exclusion_count',
+    # The number of measurements excluded because they were not X time
+    # away from each other. By default it is one day.
     'relay_recent_measurement_exclusion_not_distanciated_count',
+    # The number of measurements excluded because there were not X time recent.
+    # By default this is 5 days.
     'relay_recent_measurement_exclusion_not_recent_count',
+    # The number of measurements excluded because there were not at least X.
+    # By default it is 2.
     'relay_recent_measurement_exclusion_not_min_num_count',
 ]
 BW_KEYVALUES_EXTRA = BW_KEYVALUES_FILE + BW_KEYVALUES_EXTRA_BWS \





More information about the tor-commits mailing list