add ctop header, disabled by default

This commit is contained in:
Bradley Cicenas
2017-01-06 13:49:22 +00:00
parent f311aad105
commit bebdfd844f
4 changed files with 62 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ import (
"os"
)
var GlobalConfig = NewDefaultConfig()
var configChan = make(chan ConfigMsg)
type Config map[string]string
@@ -23,8 +24,9 @@ func NewDefaultConfig() Config {
docker = "unix:///var/run/docker.sock"
}
config := Config{
"dockerHost": docker,
"sortField": "id",
"dockerHost": docker,
"sortField": "id",
"enableHeader": "0",
}
go func() {
for m := range configChan {