From c72fbdd086e908b7dd36fe36b72d12c30347dde6 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Fri, 4 Oct 2024 14:32:59 +0200 Subject: [PATCH] Improve display for progress --- filesmap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filesmap.go b/filesmap.go index c75ca5d..be6ca47 100644 --- a/filesmap.go +++ b/filesmap.go @@ -43,7 +43,7 @@ func newFilesMap() *FilesMap { func (fm *FilesMap) FileHashingWorker(wg *sync.WaitGroup) { for file := range fm.FilesHashing { if *verbose { - fmt.Println("Hashing file", file.path) + fmt.Fprintf(fm.progress, "Hashing file %s\n", file.path) } hash, err := calculateFileHash(file.path) @@ -63,7 +63,7 @@ func (fm *FilesMap) FileHashingWorker(wg *sync.WaitGroup) { func (fm *FilesMap) ImageHashingWorker(wg *sync.WaitGroup) { for file := range fm.ImagesHashing { if *verbose { - fmt.Println("Hashing image", file.path) + fmt.Fprintf(fm.progress, "Hashing image %s\n", file.path) } hash, err := calculateImageHash(file.path)