From 3a0ce6aafa53f87b29e82ff526785215e41c86d8 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 23 Mar 2025 12:36:38 -0400 Subject: [PATCH] fix(scanner): elapsed time for folder processing is wrong in the logs Signed-off-by: Deluan --- scanner/walk_dir_tree.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scanner/walk_dir_tree.go b/scanner/walk_dir_tree.go index 323ba0392..ba87f2628 100644 --- a/scanner/walk_dir_tree.go +++ b/scanner/walk_dir_tree.go @@ -70,7 +70,6 @@ func newFolderEntry(job *scanJob, path string) *folderEntry { albumIDMap: make(map[string]string), updTime: job.popLastUpdate(id), } - f.elapsed.Start() return f } @@ -115,6 +114,8 @@ func walkFolder(ctx context.Context, job *scanJob, currentFolder string, ignoreP "images", maps.Keys(folder.imageFiles), "playlists", folder.numPlaylists, "imagesUpdatedAt", folder.imagesUpdatedAt, "updTime", folder.updTime, "modTime", folder.modTime, "numChildren", len(children)) folder.path = dir + folder.elapsed.Start() + results <- folder return nil