aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mbf/cache.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/mbf/cache.go b/cmd/mbf/cache.go
index 5a4b9672..847d7d4e 100644
--- a/cmd/mbf/cache.go
+++ b/cmd/mbf/cache.go
@@ -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)")
}
}()
}