add outdated count
This commit is contained in:
@ -17,6 +17,7 @@ import (
|
|||||||
type DownloadStats struct {
|
type DownloadStats struct {
|
||||||
Updated int
|
Updated int
|
||||||
Current int
|
Current int
|
||||||
|
Outdated int
|
||||||
}
|
}
|
||||||
|
|
||||||
func Update(wowdir string, force bool, removeUnknown bool, skipDownload bool) (DownloadStats, error) {
|
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)
|
fmt.Printf("File %s is up to date\n", localPath)
|
||||||
stats.Current += 1
|
stats.Current += 1
|
||||||
continue
|
continue
|
||||||
|
} else {
|
||||||
|
stats.Outdated += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user