diff options
author | Ralph Bean <rbean@redhat.com> | 2015-04-23 01:58:31 +0000 |
---|---|---|
committer | Ralph Bean <rbean@redhat.com> | 2015-04-23 01:58:31 +0000 |
commit | 8fbd6cabffa2291cf9d5e7b6422f762e7bede147 (patch) | |
tree | 96fa31107c501b01d6600396750131a775ce9fbc | |
parent | ada9ebb22e247962e8727697c7a18e1be2e15445 (diff) | |
download | ansible-8fbd6cabffa2291cf9d5e7b6422f762e7bede147.tar.gz ansible-8fbd6cabffa2291cf9d5e7b6422f762e7bede147.tar.xz ansible-8fbd6cabffa2291cf9d5e7b6422f762e7bede147.zip |
Revert "I think collectd wants a 0-1 value here."
This reverts commit ada9ebb22e247962e8727697c7a18e1be2e15445.
-rw-r--r-- | roles/collectd/fedmsg-activation/files/fedmsg-map.py | 4 |
1 files 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 814e6d485..792a2d7a5 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 = float(active_n_total) / (active_n_total + inactive_n_total) - info("percent active: %%%0.1f\n" % (100 * value)) + value = 100 * float(active_n_total) / (active_n_total + inactive_n_total) + info("percent active: %%%0.1f\n" % value) return value if not for_collectd: |