cmd/ursrv: Summarize known distribution channels

That is, whether the binary was downloaded from GitHub, from our APT
repository, etc.
This commit is contained in:
Jakob Borg
2019-05-15 13:42:55 +02:00
parent c02aed0a21
commit e16a65bacb
3 changed files with 62 additions and 14 deletions

View File

@@ -24,10 +24,10 @@ type analyticList []analytic
func (l analyticList) Less(a, b int) bool {
if l[a].Key == "Others" {
return true
return false
}
if l[b].Key == "Others" {
return false
return true
}
return l[b].Count < l[a].Count // inverse
}