formatted code
This commit is contained in:
parent
6798807a0b
commit
65263426b4
2 changed files with 22 additions and 23 deletions
|
@ -8,10 +8,10 @@ import (
|
||||||
"github.com/mesos/mesos-go/mesosutil"
|
"github.com/mesos/mesos-go/mesosutil"
|
||||||
sched "github.com/mesos/mesos-go/scheduler"
|
sched "github.com/mesos/mesos-go/scheduler"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"sort"
|
|
||||||
"os"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// electron scheduler implements the Scheduler interface
|
// electron scheduler implements the Scheduler interface
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
package schedulers
|
package schedulers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bitbucket.org/sunybingcloud/electron/constants"
|
||||||
"bitbucket.org/sunybingcloud/electron/def"
|
"bitbucket.org/sunybingcloud/electron/def"
|
||||||
|
"bitbucket.org/sunybingcloud/electron/pcp"
|
||||||
|
"bitbucket.org/sunybingcloud/electron/rapl"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
mesos "github.com/mesos/mesos-go/mesosproto"
|
mesos "github.com/mesos/mesos-go/mesosproto"
|
||||||
"github.com/mesos/mesos-go/mesosutil"
|
"github.com/mesos/mesos-go/mesosutil"
|
||||||
sched "github.com/mesos/mesos-go/scheduler"
|
sched "github.com/mesos/mesos-go/scheduler"
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
|
||||||
"time"
|
|
||||||
"sort"
|
|
||||||
"os"
|
|
||||||
"bitbucket.org/sunybingcloud/electron/pcp"
|
|
||||||
"sync"
|
|
||||||
"math"
|
"math"
|
||||||
"bitbucket.org/sunybingcloud/electron/constants"
|
"os"
|
||||||
"bitbucket.org/sunybingcloud/electron/rapl"
|
"sort"
|
||||||
|
"strings"
|
||||||
|
"sync"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// electron scheduler implements the Scheduler interface
|
// electron scheduler implements the Scheduler interface
|
||||||
|
@ -80,7 +80,6 @@ func NewFirstFitSortedWattsClassMapWattsProacCC(tasks []def.Task, ignoreWatts bo
|
||||||
isCapping: false,
|
isCapping: false,
|
||||||
isRecapping: false,
|
isRecapping: false,
|
||||||
schedTrace: log.New(logFile, "", log.LstdFlags),
|
schedTrace: log.New(logFile, "", log.LstdFlags),
|
||||||
|
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue