mirror of https://github.com/mikaku/Monitorix.git
Customize email reports time #39
This commit is contained in:
parent
fc2638fa37
commit
2189d7bcf2
|
@ -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($@) {
|
||||
|
|
Loading…
Reference in New Issue