This should only happen for appointments, so move it inside if.

This commit is contained in:
Bradley M. Kuhn 2013-08-26 11:50:57 -04:00
parent f5f1a0de14
commit 98774290b1

View file

@ -70,8 +70,8 @@ while (my $line = <THREE_DAYS>) {
system('/usr/bin/notify-send', '-u', 'critical', '-t', '300000',
'Appointment', "You have an appointment at $time: $val");
}
next if DateCalc("$date", "+ 1 hour") lt $now;
}
next if DateCalc("$date", "+ 1 hour") lt $now;
if (defined $prettyDayLine) {
print $prettyDayLine;
undef $prettyDayLine;