Fixed plugin timeout.

This commit is contained in:
Junichi Satoh 2018-08-30 13:30:22 +09:00
parent 9d35a66ad3
commit 34c553f5b4
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ sub data_consumer ($$) {
return unless defined $agent;
# Use the smallest timeout
my $timeout = (($plugin->{'max_timeout'} < $pa_config->{'plugin_timeout'}) && $pa_config->{'max_timeout'}) ?
my $timeout = (($plugin->{'max_timeout'} < $pa_config->{'plugin_timeout'}) && $plugin->{'max_timeout'}) ?
$plugin->{'max_timeout'} : $pa_config->{'plugin_timeout'};
# Setting default timeout if is invalid