formatted files

This commit is contained in:
Pradyumna Kaushik 2017-08-26 22:33:06 -04:00
parent 8bc408dea1
commit 3a9db01fa0
2 changed files with 6 additions and 6 deletions

View file

@ -1,13 +1,13 @@
package def
// the sortBy function that takes a task reference and returns the resource to consider when sorting.
type sortBy func (task *Task) float64
type sortBy func(task *Task) float64
// Possible Sorting Criteria
// Each holds a closure that fetches the required resource from the
// given task reference.
var (
SortByCPU = func (task *Task) float64 {return task.CPU}
SortByRAM = func (task *Task) float64 {return task.RAM}
SortByWatts = func (task *Task) float64 {return task.Watts}
SortByCPU = func(task *Task) float64 { return task.CPU }
SortByRAM = func(task *Task) float64 { return task.RAM }
SortByWatts = func(task *Task) float64 { return task.Watts }
)