Skip to content

Commit 09eadfe

Browse files
kpamnanyRAI CI (GitHub Action Automation)
authored andcommitted
RAI: Change task ordering behavior to prioritize older tasks
1 parent 1b898de commit 09eadfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/partr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function multiq_sift_down(heap::taskheap, idx::Int32)
9797
child = Int(child)
9898
child > length(heap.tasks) && break
9999
if isassigned(heap.tasks, child) &&
100-
heap.tasks[child].priority < heap.tasks[idx].priority
100+
heap.tasks[child].priority <= heap.tasks[idx].priority
101101
t = heap.tasks[idx]
102102
heap.tasks[idx] = heap.tasks[child]
103103
heap.tasks[child] = t

0 commit comments

Comments
 (0)