diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 17:59:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 17:59:27 -0500 |
| commit | 3ba9a5da209bf070a268b20df48a5a41f7b31109 (patch) | |
| tree | 68fce648e4d64cbf72fa230c282cad41ce278822 /http.go | |
| parent | 673bcc6cc9e4504ff707d6cef7575eb1ce152e7c (diff) | |
compiles
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,12 +23,12 @@ func okHandler(w http.ResponseWriter, r *http.Request) { // is the cluster running what it should? if tmp == "/droplets" { for _, d := range me.droplets { - if d.ConfigState != "ON" { + if d.pb.StartState != "ON" { continue } dur := time.Since(d.lastpoll) // Calculate the elapsed time if d.CurrentState != "ON" { - fmt.Fprintln(w, "BAD STATE ", d.pb.Hostname, d.hname, "(", d.ConfigState, "vs", d.CurrentState, ")", shell.FormatDuration(dur)) + fmt.Fprintln(w, "BAD STATE ", d.pb.Hostname, d.hname, "(", d.pb.StartState, "vs", d.CurrentState, ")", shell.FormatDuration(dur)) } else { dur := time.Since(d.lastpoll) // Calculate the elapsed time fmt.Fprintln(w, "GOOD STATE ON", d.pb.Hostname, d.hname, shell.FormatDuration(dur)) @@ -65,7 +65,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) { } // l := shell.FormatDuration(dur) // log.Warn("HOST =", h.pb.Hostname, "Last poll =", l) - //if d.ConfigState != "ON" { + //if d.pb.StartState != "ON" { // continue //} // dur := time.Since(d.lastpoll) // Calculate the elapsed time |
