Add % on badger import state
This commit is contained in:
parent
86bcf0fe94
commit
f5221bb03c
|
@ -60,6 +60,18 @@ func main() {
|
||||||
|
|
||||||
taskState := source.ConvertToBadger(destination, *split)
|
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()
|
taskState.Wait()
|
||||||
} else if *command == "bptree" {
|
} else if *command == "bptree" {
|
||||||
source, err := store.NewAppendConverter(*sourcePath, true, true)
|
source, err := store.NewAppendConverter(*sourcePath, true, true)
|
||||||
|
|
Loading…
Reference in a new issue