diff options
Diffstat (limited to 'poll.go')
| -rw-r--r-- | poll.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -139,15 +139,15 @@ func clusterHealthy() (bool, string) { if me.killcount > 0 { summary += "(killcount=" + fmt.Sprintf("%d", me.killcount) + ")" } - last := time.Since(me.stable) + last := time.Since(me.unstable) if last > 133*time.Second { // the cluster has not been stable for 10 seconds - s := shell.FormatDuration(last) - summary += "(unstable " + s + ")" + s := strings.TrimSpace(shell.FormatDuration(last)) + summary += "(stable=" + s + ")" } if good { - me.stable = time.Now() return good, "GOOD=true " + summary } + me.unstable = time.Now() return good, "GOOD=false " + summary } |
