mirror of https://github.com/ArduPilot/ardupilot
Tools: size_compare_branches.py: correct pruning of threads
This commit is contained in:
parent
039701b616
commit
cd1e1273fa
|
@ -453,8 +453,8 @@ class SizeCompareBranches(object):
|
|||
|
||||
thread_number = 0
|
||||
while len(self.parallel_tasks) or len(threads):
|
||||
if len(tasks) < self.n_threads:
|
||||
self.n_threads = len(tasks)
|
||||
if len(self.parallel_tasks) < self.n_threads:
|
||||
self.n_threads = len(self.parallel_tasks)
|
||||
while len(threads) < self.n_threads:
|
||||
self.progress(f"Starting thread {thread_number}")
|
||||
t = threading.Thread(
|
||||
|
|
Loading…
Reference in New Issue