summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-06 15:35:23 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:51 +0000
commitb3a0179d64c2c3b4f57688bdcceb818d0124c858 (patch)
tree2c326f0bd0b15e40689cdbdf27c7b062c2192e1e /synapse
parentRename Metrics' "keys" to "labels" (diff)
downloadsynapse-b3a0179d64c2c3b4f57688bdcceb818d0124c858.tar.xz
Bugfix to rendering output of vectored TimerMetrics
Diffstat (limited to 'synapse')
-rw-r--r--synapse/metrics/metric.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/metrics/metric.py b/synapse/metrics/metric.py
index 8ba13075f7..17cd673891 100644
--- a/synapse/metrics/metric.py
+++ b/synapse/metrics/metric.py
@@ -127,9 +127,8 @@ class TimerMetric(CounterMetric):
     def render_item(self, k):
         keystr = self._render_key(k)
 
-        return ["%s%s:count %d" % (self.name, keystr, self.counts[k]),
-                "%s%s:msec %d" % (self.name, keystr, self.times[k])]
-
+        return ["%s:count%s %d" % (self.name, keystr, self.counts[k]),
+                "%s:msec%s %d" % (self.name, keystr, self.times[k])]
 
 
 class CacheMetric(object):