Send separate messages

This commit is contained in:
idanoo 2023-01-30 11:44:03 +13:00
parent 0ed54031d1
commit 9bc4bc3466
Signed by: idanoo
GPG key ID: 387387CDBC02F132
2 changed files with 6 additions and 19 deletions

View file

@ -113,12 +113,6 @@ func getUserCounts() ([]metric, error) {
return metrics, nil
}
func getPrintableString(m []metric) string {
output := ""
for _, v := range m {
output = fmt.Sprintf("%s\n%s: %d", output, v.Service, v.MetricValue)
}
return output
func getPrintableString(m metric) string {
return fmt.Sprintf("%s: %d", m.Service, m.MetricValue)
}