Fix undef warning when daemon
is unset
This fixes a bug introduced in commit
88eb2ed4fe
This commit is contained in:
parent
ae7a9dce2a
commit
de39ac7bcc
1 changed files with 1 additions and 1 deletions
|
@ -1919,7 +1919,7 @@ sub init_config {
|
||||||
## parse an interval expression (such as '5m') into number of seconds
|
## parse an interval expression (such as '5m') into number of seconds
|
||||||
$opt{'daemon'} = interval(opt('daemon')) if defined($opt{'daemon'});
|
$opt{'daemon'} = interval(opt('daemon')) if defined($opt{'daemon'});
|
||||||
## make sure the interval isn't too short
|
## make sure the interval isn't too short
|
||||||
$opt{'daemon'} = minimum('daemon') if opt('daemon') > 0 && opt('daemon') < minimum('daemon');
|
$opt{'daemon'} = minimum('daemon') if opt('daemon') && opt('daemon') < minimum('daemon');
|
||||||
|
|
||||||
## define or modify host options specified on the command-line
|
## define or modify host options specified on the command-line
|
||||||
if (defined($opt{'options'})) {
|
if (defined($opt{'options'})) {
|
||||||
|
|
Loading…
Reference in a new issue