m - metric - behaves like a counter

This commit is contained in:
Lukasz Jagiello 2016-02-07 22:09:50 +00:00
parent 5661209585
commit 80d3fd76a8
1 changed files with 2 additions and 2 deletions

View File

@ -487,7 +487,7 @@ func (s *Statsd) aggregate(m metric) {
cached.stats.AddValue(m.floatvalue)
s.timings[m.hash] = cached
}
case "c":
case "c", "m":
// check if the measurement exists
_, ok := s.counters[m.hash]
if !ok {
@ -525,7 +525,7 @@ func (s *Statsd) aggregate(m metric) {
} else {
s.gauges[m.hash].fields[m.field] = m.floatvalue
}
case "s", "m", "mr":
case "s", "mr":
// check if the measurement exists
_, ok := s.sets[m.hash]
if !ok {