Customize email reports time #39

This commit is contained in:
Jordi Sanfeliu 2014-01-29 18:00:56 +01:00
parent fc2638fa37
commit 2189d7bcf2
1 changed files with 3 additions and 3 deletions

View File

@ -563,12 +563,12 @@ while(1) {
# Email Reports
if(lc($config{emailreports}->{enabled}) eq "y") {
my $emailreports = $config{emailreports};
my $email_m = $emailreports->{minute};
my $email_h = $emailreports->{hour};
my $m = $emailreports->{minute};
my $h = $emailreports->{hour};
my $d = "emailreports";
undef($d) if(!grep {trim($_) eq $d} (@{$config{debug}}));
if($min == $email_m && $hour == $email_h) {
if($min == $m && $hour == $h) {
eval "use emailreports qw(emailreports_send)";
if($@) {