Go FMT run on entire project
This commit is contained in:
parent
7c7d80b557
commit
86790133e1
4 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
package pcp
|
||||
|
||||
import (
|
||||
"bitbucket.org/bingcloud/electron/rapl"
|
||||
"bufio"
|
||||
"container/ring"
|
||||
"log"
|
||||
|
@ -12,7 +13,6 @@ import (
|
|||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
"bitbucket.org/bingcloud/electron/rapl"
|
||||
)
|
||||
|
||||
var RAPLUnits = math.Pow(2, -32)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package rapl
|
||||
|
||||
import (
|
||||
"golang.org/x/crypto/ssh"
|
||||
"github.com/pkg/errors"
|
||||
"golang.org/x/crypto/ssh"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func Cap(host, username string, percentage int) (error) {
|
||||
func Cap(host, username string, percentage int) error {
|
||||
|
||||
if percentage > 100 || percentage < 0 {
|
||||
return errors.New("Percentage is out of range")
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"github.com/mesos/mesos-go/mesosutil"
|
||||
sched "github.com/mesos/mesos-go/scheduler"
|
||||
"log"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
"sort"
|
||||
)
|
||||
|
||||
// Decides if to take an offer or not
|
||||
|
|
Reference in a new issue