diff options
Diffstat (limited to 'start.go')
| -rw-r--r-- | start.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -10,7 +10,6 @@ import ( "math/rand" "time" - "go.wit.com/lib/gui/shell" pb "go.wit.com/lib/protobuf/virtbuf" ) @@ -18,9 +17,9 @@ func isClusterStable() (string, error) { // how long has the cluster been stable? // wait until it is stable. use this to throttle droplet starts dur := time.Since(me.unstable) - good := fmt.Sprintln("trying to start droplet here. grid stable for: ", shell.FormatDuration(dur)) + good := fmt.Sprintln("trying to start droplet here. grid stable for: ", pb.FormatDuration(dur)) if dur < me.unstableTimeout { - tmp := shell.FormatDuration(me.unstableTimeout) + tmp := pb.FormatDuration(me.unstableTimeout) err := "grid is still too unstable (unstable timeout = " + tmp + ")\n" return good + err, errors.New(err) } |
