Revert "I think collectd wants a 0-1 value here."
This reverts commit ada9ebb22e
.
This commit is contained in:
parent
ada9ebb22e
commit
8fbd6cabff
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue