mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
decollector: do not pass collection interval argument if less than 30
This commit is contained in:
parent
0e06579c71
commit
28603606d6
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ start_service() {
|
|||
config_get en controller enabled "0"
|
||||
config_get collect_int controller de_collect_interval
|
||||
|
||||
[ -n "$collect_int" -a $collect_int -lt 30 ] && collect_int=""
|
||||
|
||||
[ $en -gt 0 ] && {
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG" "-d" "${collect_int:+-t $collect_int}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue