summaryrefslogtreecommitdiffstats
path: root/notify.pl
diff options
context:
space:
mode:
Diffstat (limited to 'notify.pl')
-rwxr-xr-xnotify.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/notify.pl b/notify.pl
index f97174e..6a67111 100755
--- a/notify.pl
+++ b/notify.pl
@@ -77,7 +77,7 @@ sub mailout {
my $template = "$_tmpl/email-$function.txt";
my $server_number = $1 if $_server =~ /([0-9]+)/;
- my $oddeven = $server_number % 2;
+ my $evenodd = $server_number % 2;
my $year = strftime("%Y", localtime);
my $month = strftime("%m", localtime);
@@ -127,7 +127,7 @@ sub mailout {
if ($row =~ /TIME\((.*)\)/) {
my @TIMES = split(/,/, $1);
- $row =~ s/TIME\(.*\)/$TIMES[$oddeven]/g;
+ $row =~ s/TIME\(.*\)/$TIMES[$evenodd]/g;
}
print $fh_email "$row\n";
}