Tools: size_compare_branches.py: correct pruning of threads

This commit is contained in:
Peter Barker 2024-02-01 11:18:31 +11:00 committed by Peter Barker
parent 039701b616
commit cd1e1273fa
1 changed files with 2 additions and 2 deletions

View File

@ -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(