2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

90_at.pm: yet another stupidity guard (Forum #136840)

git-svn-id: https://svn.fhem.de/fhem/trunk@28440 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2024-01-28 09:37:24 +00:00
parent 6e424e251a
commit f68ce29e5f

View File

@ -117,8 +117,10 @@ at_Define($$)
if($abstime) { if($abstime) {
$nt = $abstime; $nt = $abstime;
} elsif($rel eq "+") { } elsif($rel eq "+") { # Relative time
$nt += ($hr*3600+$min*60+$sec); # Relative time my $diff = $hr*3600+$min*60+$sec;
return "Cowardly refusing to start a busy loop" if(!$diff); #136840
$nt += $diff;
} else { } else {
my @lt = localtime($ot); my @lt = localtime($ot);