Internals: Fix missing variable initializations (#6327)

This commit is contained in:
Aleksander Kiryk 2025-08-23 16:59:12 +02:00 committed by GitHub
parent a9aa2f11b8
commit ee1ab074dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -238,6 +238,7 @@ def report_mtasks():
thread_mtask_time = collections.defaultdict(lambda: 0) thread_mtask_time = collections.defaultdict(lambda: 0)
long_mtask_time = 0 long_mtask_time = 0
long_mtask = None long_mtask = None
long_mtask_hier_block = None
predict_mtask_time = 0 predict_mtask_time = 0
predict_elapsed = 0 predict_elapsed = 0
for (hier_block, mtask_id) in Mtasks: for (hier_block, mtask_id) in Mtasks:
@ -279,6 +280,9 @@ def report_mtasks():
max_p2e = -1000000 max_p2e = -1000000
max_mtask = None max_mtask = None
min_hier_block = None
max_hier_block = None
for (hier_block, mtask_id) in sorted(Mtasks.keys()): for (hier_block, mtask_id) in sorted(Mtasks.keys()):
mtask = Mtasks[(hier_block, mtask_id)] mtask = Mtasks[(hier_block, mtask_id)]
if mtask['elapsed'] > 0: if mtask['elapsed'] > 0: