Fix counts
This commit is contained in:
parent
d7f6126eb7
commit
80e0b87bd1
@ -496,8 +496,7 @@ func GetPackagesCount() domain.PackagesCount {
|
||||
Queued: 0,
|
||||
Building: 0,
|
||||
}
|
||||
currentPackages.ForEach(func(k string, v domain.SourcePackage) bool {
|
||||
v.Packages.ForEach(func(k string, pkg domain.PackageInfo) bool {
|
||||
currentPackages.ForEach(func(k string, pkg domain.SourcePackage) bool {
|
||||
switch pkg.Status {
|
||||
case domain.Stale:
|
||||
count.Stale++
|
||||
@ -510,8 +509,7 @@ func GetPackagesCount() domain.PackagesCount {
|
||||
case domain.Error:
|
||||
count.Error++
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user