diff --git a/store/cli/cli.go b/store/cli/cli.go index bef8046..217401d 100644 --- a/store/cli/cli.go +++ b/store/cli/cli.go @@ -60,6 +60,18 @@ func main() { taskState := source.ConvertToBadger(destination, *split) + for { + p, t := taskState.Progress() + + log.Printf("%.03f%% %d/%d", float64(p*100)/float64(t), p, t) + + if p >= t { + break + } + + time.Sleep(time.Second * 5) + } + taskState.Wait() } else if *command == "bptree" { source, err := store.NewAppendConverter(*sourcePath, true, true)