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

01_FHEMWEB.pm: respect CHANGETIME for the Event Monitor

git-svn-id: https://svn.fhem.de/fhem/trunk@22632 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-08-19 17:02:35 +00:00
parent a220dacb66
commit 873944df8c

View File

@ -3141,10 +3141,12 @@ FW_Notify($$)
my ($seconds, $microseconds) = gettimeofday();
$tn .= sprintf(".%03d", $microseconds/1000);
}
my $ct = $dev->{CHANGETIME};
my $max = int(@{$events});
my $dt = $dev->{TYPE};
for(my $i = 0; $i < $max; $i++) {
my $line = "$tn $dt $dn ".$events->[$i]."<br>";
my $t = (($ct && $ct->[$i]) ? $ct->[$i] : $tn);
my $line = "$t $dt $dn ".$events->[$i]."<br>";
eval {
my $ok;
if($h->{filterType} && $h->{filterType} eq "notify") {