From cd1e1273fad2a61a57b4a6a7d25459ff2d603623 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 1 Feb 2024 11:18:31 +1100 Subject: [PATCH] Tools: size_compare_branches.py: correct pruning of threads --- Tools/scripts/size_compare_branches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/size_compare_branches.py b/Tools/scripts/size_compare_branches.py index c20a5b70bb11a..a7321448c1da1 100755 --- a/Tools/scripts/size_compare_branches.py +++ b/Tools/scripts/size_compare_branches.py @@ -453,8 +453,8 @@ def run_build_tasks_in_parallel(self, tasks): 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(