Also show image hashing bar

This commit is contained in:
Jan Bader
2023-12-06 16:37:25 +01:00
parent a2b5d2e224
commit 6f5eb6a1ca
2 changed files with 16 additions and 2 deletions

14
main.go
View File

@@ -69,7 +69,19 @@ func main() {
decor.AverageSpeed(decor.UnitKiB, "%23.2f"),
decor.Name(" "),
decor.CurrentKibiByte("%5d"),
))
),
)
filesMap.imageHashingBar = filesMap.progress.AddBar(0,
mpb.PrependDecorators(
decor.Name("Hashing images "),
decor.Elapsed(decor.ET_STYLE_HHMMSS),
),
mpb.AppendDecorators(
decor.AverageSpeed(decor.UnitKiB, "%23.2f"),
decor.Name(" "),
decor.CurrentKibiByte("%5d"),
),
)
done := make(chan bool)
wg := sync.WaitGroup{}
for i := 0; i < runtime.GOMAXPROCS(0); i++ {