Commit 8b79b6c4 authored by juga's avatar juga
Browse files

Stop measuring the same relay by 2 threads

After the all the relays in a subset that has been prioritized
have been measured, there might be still pending results, what would
make that before a thread has ended measuring it, the results
have not been dumped and prioritization is calculated again, and
that relay will have a high priority.
parent 4901c66a
......@@ -357,6 +357,9 @@ def run_speedtest(args, conf):
while len(pending_results) >= max_pending_results:
time.sleep(5)
pending_results = [r for r in pending_results if not r.ready()]
while len(pending_results) > 0:
time.sleep(5)
pending_results = [r for r in pending_results if not r.ready()]
def gen_parser(sub):
......
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