From ada9ebb22e247962e8727697c7a18e1be2e15445 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 23 Apr 2015 01:46:02 +0000 Subject: [PATCH] I think collectd wants a 0-1 value here. --- roles/collectd/fedmsg-activation/files/fedmsg-map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/collectd/fedmsg-activation/files/fedmsg-map.py b/roles/collectd/fedmsg-activation/files/fedmsg-map.py index 792a2d7a53..814e6d4850 100644 --- a/roles/collectd/fedmsg-activation/files/fedmsg-map.py +++ b/roles/collectd/fedmsg-activation/files/fedmsg-map.py @@ -96,8 +96,8 @@ def do_scan(): info(" total active: %i\n" % active_n_total) info("total inactive: %i\n" % inactive_n_total) - value = 100 * float(active_n_total) / (active_n_total + inactive_n_total) - info("percent active: %%%0.1f\n" % value) + value = float(active_n_total) / (active_n_total + inactive_n_total) + info("percent active: %%%0.1f\n" % (100 * value)) return value if not for_collectd: