add mute color placeholder for low-percent gauages

This commit is contained in:
Bradley Cicenas
2016-12-27 15:32:45 +00:00
parent 407e8fca0e
commit b7823bda5c
4 changed files with 37 additions and 19 deletions

View File

@@ -2,28 +2,24 @@ package main
import (
"fmt"
"strings"
"github.com/fsouza/go-dockerclient"
)
type Container struct {
id string
name string
done chan bool
stats chan *docker.Stats
widgets *Widgets
reader *StatReader
}
func NewContainer(cid string, names []string) *Container {
name := strings.Join(names, ",")
func NewContainer(cid, names string) *Container {
return &Container{
id: cid,
name: name,
done: make(chan bool),
stats: make(chan *docker.Stats),
widgets: NewWidgets(cid, name),
widgets: NewWidgets(cid, names),
reader: &StatReader{},
}
}