Merge "Ensure interval is set to integer"
This commit is contained in:
commit
9375440072
@ -16,7 +16,7 @@
|
||||
{# enough time to execute. Every added plugin will add 8 seconds to the interval with a #}
|
||||
{# default of 24. This value is later used as the flush interval which needs to be 2x the agent. #}
|
||||
{% set run_int = run_commands | length %}
|
||||
{% set interval = (run_int < 1 | ternary(0, run_int * 8)) + 24 %}
|
||||
{% set interval = (run_int < 1) | ternary(0, run_int * 8) | int + 24 %}
|
||||
|
||||
[agent]
|
||||
interval = "{{ interval }}s"
|
||||
@ -100,4 +100,3 @@
|
||||
[[inputs.swap]]
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user