Commit 19da64c8 authored by juga's avatar juga
Browse files

Use args to filter bw lines

when creating a bw file from results
parent 4eae70b5
......@@ -469,8 +469,9 @@ class V3BWFile(object):
log.info('Processing results to generate a bandwidth list file.')
header = V3BWHeader.from_results(results, state_fpath)
bw_lines_raw = []
for fp in results.keys():
line = V3BWLine.from_results(results[fp])
for fp, values in results.items():
line = V3BWLine.from_results(values, secs_recent, secs_away,
min_num)
if line is not None:
bw_lines_raw.append(line)
if not bw_lines_raw:
......
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