Go fmt on the entire project

This commit is contained in:
Renan DelValle 2017-01-03 20:57:25 -05:00
parent b636ff490c
commit 2678032c2c
6 changed files with 18 additions and 18 deletions

View file

@ -2,8 +2,8 @@ package main
import ( import (
"bitbucket.org/sunybingcloud/electron/def" "bitbucket.org/sunybingcloud/electron/def"
"bitbucket.org/sunybingcloud/electron/schedulers"
"bitbucket.org/sunybingcloud/electron/pcp" "bitbucket.org/sunybingcloud/electron/pcp"
"bitbucket.org/sunybingcloud/electron/schedulers"
"flag" "flag"
"fmt" "fmt"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"

View file

@ -264,7 +264,7 @@ func (s *ProactiveClusterwideCapRanked) ResourceOffers(driver sched.SchedulerDri
} }
// sorting the tasks in ascending order of watts. // sorting the tasks in ascending order of watts.
if (len(s.tasks) > 0) { if len(s.tasks) > 0 {
sort.Sort(def.WattsSorter(s.tasks)) sort.Sort(def.WattsSorter(s.tasks))
// calculating the total number of tasks ranked. // calculating the total number of tasks ranked.
numberOfRankedTasks := 0 numberOfRankedTasks := 0

View file

@ -7,8 +7,8 @@ One should implement Val() to be able to use this utility.
package runAvg package runAvg
import ( import (
"errors"
"container/list" "container/list"
"errors"
) )
type Interface interface { type Interface interface {