1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-16 00:26:43 +00:00

update scheduler_priority

This commit is contained in:
2019-07-12 15:12:51 +08:00
parent b48d9a92c0
commit 5f9a9b00ce
3 changed files with 16 additions and 15 deletions

View File

@@ -103,6 +103,7 @@ func (scheduler *SchedulerPriority) Schedule(job Job) {
right = mid - 1
}
}
fmt.Println(index)
scheduler.queue = append(scheduler.queue, Job{})
copy(scheduler.queue[index+1:], scheduler.queue[index:])