Skip to content

Commit

Permalink
Tools: size_compare_branches.py: correct pruning of threads
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 1, 2024
1 parent 039701b commit cd1e127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/scripts/size_compare_branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cd1e127

Please sign in to comment.