Test mastodon posting

This commit is contained in:
idanoo 2023-01-30 11:54:25 +13:00
parent aec56e7352
commit 3aeff25285
Signed by: idanoo
GPG key ID: 387387CDBC02F132
8 changed files with 78 additions and 2 deletions

View file

@ -4,6 +4,8 @@ import (
"fmt"
"log"
"time"
"golang.org/x/text/cases"
)
// Stores out metric/row data
@ -114,5 +116,5 @@ func getUserCounts() ([]metric, error) {
}
func getPrintableString(m metric) string {
return fmt.Sprintf("%s: %d", m.Service, m.MetricValue)
return fmt.Sprintf("%s: %d", cases.Title(m.Service), m.MetricValue)
}