From c759c2a051477a968ec85f46577d74960e4348cd Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Wed, 9 Mar 2016 03:26:08 +0100 Subject: [PATCH] Correct respondd naming --- config_example.yaml | 2 +- main.go | 4 ++-- models/config.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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"`