summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index fd3884a..f7e14a6 100644
--- a/main.go
+++ b/main.go
@@ -35,10 +35,11 @@ func main() {
me.names = append(me.names, s)
log.Info("Making a hypervisor struct for", s)
- var h HyperT
+ h := new(HyperT)
h.Hostname = s
h.Autoscan = true
h.Delay = 5 * time.Second
+ h.lastpoll = time.Now()
h.Scan = func() {
h.pollHypervisor()
}