summaryrefslogtreecommitdiff
path: root/start.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-01 00:41:00 -0500
committerJeff Carr <[email protected]>2024-11-01 00:41:00 -0500
commitc1d86fc324671995ee6dc279c7568bceda1cc910 (patch)
treeb7ba69757e251da753780cf6a8a8b1e8e60a2d75 /start.go
parent26cd0f7709ba552b98aeee83723612eb5e7009cb (diff)
common d.SprintHeader() functions for humans
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'start.go')
-rw-r--r--start.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/start.go b/start.go
index eaad2c5..465f7b5 100644
--- a/start.go
+++ b/start.go
@@ -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)
}