diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 17:45:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 17:45:50 -0600 |
| commit | 32e27530075a09f5c3b82ca6cbb83a01e34cb24c (patch) | |
| tree | bf1ad3f04ef77b2425385a4261e36d95909b6988 /dump.go | |
| parent | 9f9a52312e6e9538e7ec4c0eefbe46aace352fd3 (diff) | |
switch virtbuf to virtpbv0.2.36
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 |
