From 516a1f9b570e115062c415b3878a87a1893d4e3b Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Sun, 20 Jul 2025 21:17:33 -0700 Subject: [PATCH] add outdated count --- pkg/epoch/update.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/epoch/update.go b/pkg/epoch/update.go index c574736..39252fb 100644 --- a/pkg/epoch/update.go +++ b/pkg/epoch/update.go @@ -15,8 +15,9 @@ import ( ) type DownloadStats struct { - Updated int - Current int + Updated int + Current int + Outdated int } func Update(wowdir string, force bool, removeUnknown bool, skipDownload bool) (DownloadStats, error) { @@ -52,6 +53,8 @@ func Update(wowdir string, force bool, removeUnknown bool, skipDownload bool) (D fmt.Printf("File %s is up to date\n", localPath) stats.Current += 1 continue + } else { + stats.Outdated += 1 } } }