mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04: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()
|
||||
|
||||
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())]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user