diff options
Diffstat (limited to 'poll.go')
| -rw-r--r-- | poll.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -194,15 +194,16 @@ func uptimeCheck() (bool, string) { summary += "(killcount=" + fmt.Sprintf("%d", me.killcount) + ")" } last := time.Since(me.unstable) + s := strings.TrimSpace(shell.FormatDuration(last)) if last > me.clusterStableDuration { // the cluster has not been stable for 10 seconds - s := strings.TrimSpace(shell.FormatDuration(last)) summary += "(stable=" + s + ")" + } else { + summary += "(unstable=" + s + ")" } for _, d := range missing { summary += fmt.Sprint("\nmissing droplet: ", d.Hostname, " current state ", d.CurrentState) } - summary += fmt.Sprint("\ngrid stable for: ", shell.FormatDuration(time.Since(me.unstable))) if good { return good, "GOOD=true " + summary } |
