From 67d2be7f9ad6524789273ab1beabf83b02b9de13 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 23 Apr 2015 14:31:38 +0000 Subject: [PATCH] Restrict percent to one digit of precision. I think this is what collectd wants after looking in types.db. --- roles/collectd/fedmsg-activation/files/fedmsg-map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/collectd/fedmsg-activation/files/fedmsg-map.py b/roles/collectd/fedmsg-activation/files/fedmsg-map.py index 792a2d7a53..69722065c6 100644 --- a/roles/collectd/fedmsg-activation/files/fedmsg-map.py +++ b/roles/collectd/fedmsg-activation/files/fedmsg-map.py @@ -119,7 +119,7 @@ else: host=host, interval=interval, timestamp=int(timestamp), - value=value) + value="%0.1f" % value) print(output) if interval - delta > 0: time.sleep(interval - delta)