diff options
Diffstat (limited to 'poll.go')
| -rw-r--r-- | poll.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -105,7 +105,7 @@ func clusterHealthy() (bool, string) { for _, d := range me.droplets { total += 1 - if d.ConfigState != "ON" { + if d.pb.StartState != "ON" { continue } dur := time.Since(d.lastpoll) // Calculate the elapsed time @@ -116,7 +116,7 @@ func clusterHealthy() (bool, string) { continue } if d.CurrentState != "ON" { - log.Info("BAD STATE", d.ConfigState, d.pb.Hostname, d.hname, "CurrentState =", d.CurrentState, shell.FormatDuration(dur)) + log.Info("BAD STATE", d.pb.StartState, d.pb.Hostname, d.hname, "CurrentState =", d.CurrentState, shell.FormatDuration(dur)) good = false failed += 1 } else { |
