Unverified Commit 3f74d937 authored by teor's avatar teor Committed by GitHub
Browse files

Exclude results, then check for the minimum number

sbws should exclude results, then check for the minimum number of results.

Closes bug 28572.
parent 9f537092
......@@ -315,9 +315,6 @@ class V3BWLine(object):
kwargs.update(cls.result_types_from_results(results))
# useful args for scaling
if success_results:
if not len(success_results) >= min_num:
# log.debug('The number of results is les than %s', min_num)
return None
results_away = \
cls.results_away_each_other(success_results, secs_away)
if not results_away:
......@@ -327,6 +324,9 @@ class V3BWLine(object):
results_recent = cls.results_recent_than(results_away, secs_recent)
if not results_recent:
return None
if not len(results_recent) >= min_num:
# log.debug('The number of results is less than %s', min_num)
return None
kwargs['desc_bw_avg'] = \
results_recent[-1].relay_average_bandwidth
rtt = cls.rtt_from_results(results_recent)
......
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