Merged in scheduleOnlySchedWindowTasks (pull request #6)
ScheduleOnlySchedWindowTasks Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
This commit is contained in:
parent
3d51efc679
commit
85383da550
10 changed files with 103 additions and 112 deletions
|
@ -119,7 +119,7 @@ func labelAndOrder(clusters map[int][]Task, numberOfClusters int, taskObservatio
|
|||
|
||||
// Generic Task Sorter.
|
||||
// Be able to sort an array of tasks based on any of the tasks' resources.
|
||||
func SortTasks(ts []Task, sb sortBy) {
|
||||
func SortTasks(ts []Task, sb SortBy) {
|
||||
sort.SliceStable(ts, func(i, j int) bool {
|
||||
return sb(&ts[i]) <= sb(&ts[j])
|
||||
})
|
||||
|
|
Reference in a new issue