mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 08:42:01 +00:00
Callback metric values might not just be integers - allow floats
This commit is contained in:
parent
7d2cf7e960
commit
b21b9dbc37
@ -98,9 +98,9 @@ class CallbackMetric(BaseMetric):
|
|||||||
value = self.callback()
|
value = self.callback()
|
||||||
|
|
||||||
if self.is_scalar():
|
if self.is_scalar():
|
||||||
return ["%s %d" % (self.name, value)]
|
return ["%s %.12g" % (self.name, value)]
|
||||||
|
|
||||||
return ["%s%s %d" % (self.name, self._render_key(k), value[k])
|
return ["%s%s %.12g" % (self.name, self._render_key(k), value[k])
|
||||||
for k in sorted(value.keys())]
|
for k in sorted(value.keys())]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user