Skip to content

Commit 5081cd8

Browse files
committed
Ooops
1 parent ce1706f commit 5081cd8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

riemann_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def create_dict(event):
153153
elif descriptor.name == 'attributes':
154154
value = dict(((a.key, a.value) for a in value))
155155
elif isinstance(value, float):
156-
value = round(value, 2)
156+
value = round(value, 1)
157157
data[descriptor.name] = value
158158

159159
return data

tests/test_riemann_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_send_empty_message():
4141
"tag"
4242
],
4343
"time": 1408030991,
44-
"ttl": 120
44+
"ttl": 120.0
4545
}
4646
""" % socket.gethostname()
4747

0 commit comments

Comments
 (0)