Skip to content

Commit 5d581e7

Browse files
authored
Fix: move bucket_start inside priority loop for accurate per-bucket timing
1 parent 78b7ed5 commit 5d581e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rc/control/daqinterface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,8 +2563,6 @@ def process_command(self, procinfo_index, command):
25632563
for subsystem in subsystems_in_order:
25642564
for proctype in proctypes_in_order:
25652565

2566-
bucket_start = time()
2567-
25682566
priorities_used = {}
25692567

25702568
for procinfo in self.procinfos:
@@ -2574,6 +2572,8 @@ def process_command(self, procinfo_index, command):
25742572
priority_rankings = sorted(priorities_used.keys())
25752573

25762574
for priority in priority_rankings:
2575+
bucket_start = time()
2576+
25772577
proc_threads = {}
25782578
for i_procinfo, procinfo in enumerate(self.procinfos):
25792579
if (

0 commit comments

Comments
 (0)