diff options
| author | Jeff Carr <[email protected]> | 2024-11-01 00:41:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-01 00:41:00 -0500 |
| commit | c1d86fc324671995ee6dc279c7568bceda1cc910 (patch) | |
| tree | b7ba69757e251da753780cf6a8a8b1e8e60a2d75 /start.go | |
| parent | 26cd0f7709ba552b98aeee83723612eb5e7009cb (diff) | |
common d.SprintHeader() functions for humans
Signed-off-by: Jeff Carr <[email protected]>
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) } |
