We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce1706f commit 5081cd8Copy full SHA for 5081cd8
2 files changed
riemann_client/client.py
@@ -153,7 +153,7 @@ def create_dict(event):
153
elif descriptor.name == 'attributes':
154
value = dict(((a.key, a.value) for a in value))
155
elif isinstance(value, float):
156
- value = round(value, 2)
+ value = round(value, 1)
157
data[descriptor.name] = value
158
159
return data
tests/test_riemann_command.py
@@ -41,7 +41,7 @@ def test_send_empty_message():
41
"tag"
42
],
43
"time": 1408030991,
44
- "ttl": 120
+ "ttl": 120.0
45
}
46
""" % socket.gethostname()
47
0 commit comments