mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
Revert "I think collectd wants a 0-1 value here."
This reverts commit ada9ebb22e.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user