Commit c6ba10cd authored by juga's avatar juga
Browse files

Stop comparing min_num results with ">", it's ">="

and do not use classmethod for it, since it is only a comparison
parent 3d9f5ad0
...@@ -275,9 +275,9 @@ class V3BWLine(object): ...@@ -275,9 +275,9 @@ class V3BWLine(object):
kwargs.update(cls.result_types_from_results(results)) kwargs.update(cls.result_types_from_results(results))
# useful args for scaling # useful args for scaling
if success_results: if success_results:
min_num_success_results = cls.min_num_results(success_results, if not len(success_results) >= min_num:
min_num) log.debug('There are no results with relays that have at least'
if not min_num_success_results: '{} results.'.format(min_num))
return None return None
results_away = \ results_away = \
cls.results_away_each_other(min_num_success_results, secs_away) cls.results_away_each_other(min_num_success_results, secs_away)
Supports Markdown
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