diff --git a/config_example.yaml b/config_example.yaml index a430d90..11ef097 100644 --- a/config_example.yaml +++ b/config_example.yaml @@ -1,5 +1,5 @@ --- -responedd: +respondd: enable: true collectinterval: 15 webserver: diff --git a/main.go b/main.go index 45769d1..77b3666 100644 --- a/main.go +++ b/main.go @@ -31,7 +31,7 @@ func main() { flag.Parse() config = models.ConfigReadFile(configFile) - collectInterval := time.Second * time.Duration(config.Responedd.CollectInterval) + collectInterval := time.Second * time.Duration(config.Respondd.CollectInterval) if config.Nodes.Enable { go nodes.Saver(config) @@ -49,7 +49,7 @@ func main() { http.Handle("/", http.FileServer(http.Dir(config.Webserver.Webroot))) } - if config.Responedd.Enable { + if config.Respondd.Enable { respondDaemon = respond.NewDaemon(func(coll *respond.Collector, res *respond.Response) { switch coll.CollectType { diff --git a/models/config.go b/models/config.go index e81ce96..d05100c 100644 --- a/models/config.go +++ b/models/config.go @@ -9,12 +9,12 @@ import ( //Config the config File of this daemon type Config struct { - Responedd struct { + Respondd struct { Enable bool `yaml:"enable"` Port string `yaml:"port"` Address string `yaml:"address"` CollectInterval int `yaml:"collectinterval"` - } `yaml:"responedd"` + } `yaml:"respondd"` Webserver struct { Enable bool `yaml:"enable"` Port string `yaml:"port"`