1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #12533 from ankushagarwal/gofmt-directory

gofmt 1.4.2  src directory
This commit is contained in:
Jessie Frazelle 2015-04-20 17:02:43 -07:00
commit 4a25c5d25b
3 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@ func (cli *DockerCli) CmdStats(args ...string) error {
if len(errs) > 0 {
return fmt.Errorf("%s", strings.Join(errs, ", "))
}
for _ = range time.Tick(500 * time.Millisecond) {
for range time.Tick(500 * time.Millisecond) {
printHeader()
toRemove := []int{}
for i, s := range cStats {

View file

@ -84,7 +84,7 @@ func handleStopSignals(p proxy.Proxy) {
s := make(chan os.Signal, 10)
signal.Notify(s, os.Interrupt, syscall.SIGTERM, syscall.SIGSTOP)
for _ = range s {
for range s {
p.Close()
os.Exit(0)

View file

@ -76,7 +76,7 @@ func (s *statsCollector) unsubscribe(c *Container, ch chan interface{}) {
}
func (s *statsCollector) run() {
for _ = range time.Tick(s.interval) {
for range time.Tick(s.interval) {
for container, publisher := range s.publishers {
systemUsage, err := s.getSystemCpuUsage()
if err != nil {