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

View File

@@ -33,6 +33,8 @@ type FilesMap struct {
fileHashingBar *mpb.Bar
imageHashingBar *mpb.Bar
lock sync.Mutex
}
@@ -75,7 +77,7 @@ func (fm *FilesMap) ImageHashingWorker(wg *sync.WaitGroup) {
}
hash, err := calculateImageHash(file.path)
//fm.hashingBar.IncrInt64(file.size)
fm.imageHashingBar.IncrInt64(file.size)
if err != nil {
log.Printf("Error calculating Hash for image %s: %v\n", file.path, err)