summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index 353791b..9420f63 100644
--- a/main.go
+++ b/main.go
@@ -9,6 +9,7 @@ import (
"os"
"time"
+ "go.wit.com/lib/debian"
"go.wit.com/lib/gui/prep"
"go.wit.com/lib/hostname"
"go.wit.com/lib/protobuf/zoopb"
@@ -32,9 +33,9 @@ func main() {
if argv.Daemon {
// turn off timestamps for STDOUT (systemd adds them)
log.DaemonMode(true)
- me.machine, me.fullpath = zoopb.InitDaemon()
+ me.machine = debian.InitDaemon()
} else {
- me.machine, me.fullpath = zoopb.InitMachine()
+ me.machine = debian.InitMachine()
}
if argv.Status != nil {
@@ -111,7 +112,7 @@ func testURL(urlbase string, pb *zoopb.Machine) error {
return err
}
wsPB.DumpClient()
- newpb.Dump()
+ log.Infof("mem=%d cpus=%d\n", newpb.Memory, newpb.Cpus)
log.Info("got error:", err)
return err
}