Commit 39739fa3 authored by juga  's avatar juga
Browse files

fixup! new: v3bwfile: Set measurements exclusion KeyValues

parent 26380423
......@@ -561,9 +561,10 @@ class V3BWLine(object):
len(results_away) - len(results_recent)
if not results_recent:
return None, 'recent_measurement_exclusion_not_recent_count'
kwargs['relay_recent_measurement_exclusion_not_min_num_count'] = \
len(results_recent)
if not len(results_recent) >= min_num:
kwargs['relay_recent_measurement_exclusion_not_min_num_count'] = \
len(results_recent)
# log.debug('The number of results is less than %s', min_num)
return None, 'recent_measurement_exclusion_not_min_num_count'
......
......@@ -65,7 +65,6 @@ raw_bwl_str = "bw=56 bw_mean=61423 bw_median=55656 "\
"node_id=$AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA "\
"relay_recent_measurement_attempt_count=2 "\
"relay_recent_measurement_exclusion_not_distanciated_count=0 "\
"relay_recent_measurement_exclusion_not_min_num_count=1 "\
"relay_recent_measurement_exclusion_not_recent_count=0 "\
"relay_recent_measurement_exclusion_not_success_count=1 "\
"relay_recent_priority_list_count=3 "\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment