Skip to content

Commit ba4fa97

Browse files
ramonfigueiredon-jay
authored andcommitted
Fix "Monitor Cue" with incorrect column indexing (AcademySoftwareFoundation#1431)
Fix "Monitor Cue" with incorrect column indexing for "Min" and "Max" columns - Fix the column indexing on the "addColumn" of class CueJobMonitorTree. - This bug was introduced after the merge from the pull request "Add multiple GPU support AcademySoftwareFoundation#760 (AcademySoftwareFoundation#924)" on 4/18/22 at 11:45 AM where the following new columns were introduced on the CueJobMonitorTree: "Gpus", "Min Gpus", "Max Gpus", "MaxGpuMem" and the indexing of the columns were wrongly defined.
1 parent f0a14fa commit ba4fa97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cuegui/cuegui/CueJobMonitorTree.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,17 @@ def __init__(self, parent):
190190
data=lambda group: group.data.stats.waiting_frames)
191191
self.addColumn("", 0, id=8)
192192
self.addColumn("", 0, id=9)
193-
self.addColumn("", 0, id=10,
194-
data=lambda group: (group.data.min_cores or ""))
193+
self.addColumn("", 0, id=10)
195194
self.addColumn("", 0, id=11,
195+
data=lambda group: (group.data.min_cores or ""))
196+
self.addColumn("", 0, id=12,
196197
data=lambda group: (
197198
group.data.max_cores > 0 and group.data.max_cores or ""))
198-
self.addColumn("", 0, id=12,
199-
data=lambda group: (group.data.min_gpus or ""))
200199
self.addColumn("", 0, id=13,
200+
data=lambda group: (group.data.min_gpus or ""))
201+
self.addColumn("", 0, id=14,
201202
data=lambda group: (
202203
group.data.max_gpus > 0 and group.data.max_gpus or ""))
203-
self.addColumn("", 0, id=14)
204204
self.addColumn("", 0, id=15)
205205
self.addColumn("", 0, id=16)
206206
self.addColumn("", 0, id=17)

0 commit comments

Comments
 (0)