summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/main.go b/main.go
index 2ba5dda..cf6456d 100644
--- a/main.go
+++ b/main.go
@@ -32,22 +32,21 @@ func main() {
var h HyperT
h.Hostname = s
h.Autoscan = true
- h.Delay = 3 * time.Second
+ h.Delay = 5 * time.Second
h.Scan = func() {
log.Info("scanned farm03?")
h.pollHypervisor()
}
me.hypers = append(me.hypers, h)
}
- go startHTTP()
log.Info("me.names =", me.names)
for _, h := range me.hypers {
log.Info("me hostname =", h.Hostname)
- if h.Hostname == "farm03" {
- log.Info("should start watchdog here for hostname =", h.Hostname)
- h.NewWatchdog()
- }
+ log.Info("should start watchdog here for hostname =", h.Hostname)
+ go h.NewWatchdog()
}
+ // sit here
+ startHTTP()
}