summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-13 00:40:22 -0500
committerJeff Carr <[email protected]>2024-10-13 00:40:22 -0500
commit62e9d8cfb1563ea7dbedf26a0dc593e4227cf413 (patch)
tree69447443957681d21ffecc1b1b4a83670b542242 /main.go
parentba61b7863168c03812578d74fbe1e4532eb8b6a5 (diff)
cleanup STDOUT debugging
Signed-off-by: Jeff Carr <[email protected]>
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()
}