summaryrefslogtreecommitdiff
path: root/dump.go
diff options
context:
space:
mode:
Diffstat (limited to 'dump.go')
-rw-r--r--dump.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dump.go b/dump.go
index f193238..fe328f9 100644
--- a/dump.go
+++ b/dump.go
@@ -5,7 +5,7 @@ import (
"net/http"
"time"
- pb "go.wit.com/lib/protobuf/virtbuf"
+ "go.wit.com/lib/protobuf/virtpb"
"go.wit.com/log"
)
@@ -43,12 +43,12 @@ func dumpDroplets(w http.ResponseWriter, full bool) {
}
header += d.Hostname
- if d.Current.State == pb.DropletState_ON {
+ if d.Current.State == virtpb.DropletState_ON {
// everything is as it should be with this vm
fmt.Fprintln(w, header)
continue
}
- if d.StartState == pb.DropletState_ON {
+ if d.StartState == virtpb.DropletState_ON {
// this is supposed to be ON and needs to be turned on
fmt.Fprintln(w, header, "(should be on). todo: start() here")
continue
@@ -78,7 +78,7 @@ func dumpHypervisors(w http.ResponseWriter) {
var totalUnknownDroplets int
for _, h := range me.hypers {
dur := time.Since(h.lastpoll)
- tmp := pb.FormatDuration(dur)
+ tmp := virtpb.FormatDuration(dur)
fmt.Fprintln(w, h.pb.Hostname, "killcount =", h.killcount, "lastpoll:", tmp)
for name, _ := range h.lastDroplets {
totalDroplets += 1