diff options
Diffstat (limited to 'dump.go')
| -rw-r--r-- | dump.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
