cmd/mbf: improve title format
Test / Hakurei (race detector) (push) Successful in 7m24s
Test / Sandbox (push) Successful in 3m30s
Test / Sandbox (race detector) (push) Successful in 6m3s
Test / ShareFS (push) Successful in 8m2s
Test / Create distribution (push) Successful in 54s
Test / Hakurei (push) Successful in 3m1s
Test / Flake checks (push) Successful in 1m11s
Test / Hakurei (race detector) (push) Successful in 7m24s
Test / Sandbox (push) Successful in 3m30s
Test / Sandbox (race detector) (push) Successful in 6m3s
Test / ShareFS (push) Successful in 8m2s
Test / Create distribution (push) Successful in 54s
Test / Hakurei (push) Successful in 3m1s
Test / Flake checks (push) Successful in 1m11s
This is cleaner for long-running daemon processes, and the additional information is more intuitive. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+6
-2
@@ -136,15 +136,19 @@ func (cache *cache) open() (err error) {
|
||||
var n, nc uint64
|
||||
for enter := range notify {
|
||||
if enter {
|
||||
n++
|
||||
nc++
|
||||
} else {
|
||||
nc--
|
||||
n++
|
||||
}
|
||||
|
||||
if nc == 0 {
|
||||
writeTitle(cache.msg, prefix[:len(prefix)-1])
|
||||
continue
|
||||
}
|
||||
writeTitle(cache.msg, prefix+
|
||||
"("+strconv.FormatUint(nc, 10)+
|
||||
" of "+strconv.FormatUint(n, 10)+")")
|
||||
" running, "+strconv.FormatUint(n, 10)+" complete)")
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user