cmd/ursrv: Remove broken and unsustainable join/leave chart

This commit is contained in:
Jakob Borg
2023-01-31 09:10:52 +01:00
parent 5a50de1154
commit b10e11abb7
3 changed files with 2 additions and 48 deletions
+2 -1
View File
@@ -582,7 +582,6 @@ func getReport(db *sql.DB) map[string]interface{} {
for rows.Next() {
err := rows.Scan(&rep.Received, &rep)
if err != nil {
log.Println("sql:", err)
return nil
@@ -1158,9 +1157,11 @@ type sortableFeatureList []feature
func (l sortableFeatureList) Len() int {
return len(l)
}
func (l sortableFeatureList) Swap(a, b int) {
l[a], l[b] = l[b], l[a]
}
func (l sortableFeatureList) Less(a, b int) bool {
if l[a].Pct != l[b].Pct {
return l[a].Pct < l[b].Pct