mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +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:
parent
6e424e251a
commit
f68ce29e5f
@ -117,8 +117,10 @@ at_Define($$)
|
||||
if($abstime) {
|
||||
$nt = $abstime;
|
||||
|
||||
} elsif($rel eq "+") {
|
||||
$nt += ($hr*3600+$min*60+$sec); # Relative time
|
||||
} elsif($rel eq "+") { # Relative time
|
||||
my $diff = $hr*3600+$min*60+$sec;
|
||||
return "Cowardly refusing to start a busy loop" if(!$diff); #136840
|
||||
$nt += $diff;
|
||||
|
||||
} else {
|
||||
my @lt = localtime($ot);
|
||||
|
Loading…
x
Reference in New Issue
Block a user