add outdated count

This commit is contained in:
2025-07-20 21:17:33 -07:00
parent 6b6dbdda99
commit 516a1f9b57

View File

@ -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
}
}
}