From 2189d7bcf26f9a225762696e186cf4fdde5beec9 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 29 Jan 2014 18:00:56 +0100 Subject: [PATCH] Customize email reports time #39 --- monitorix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitorix b/monitorix index 42b1f78..3fd366a 100755 --- a/monitorix +++ b/monitorix @@ -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($@) {