add outdated count
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user