mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
92_FileLog.pm: Fix busy loop between 0:00 and 1:00 (Forum #42920)
git-svn-id: https://svn.fhem.de/fhem/trunk@9704 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
47223f8214
commit
9d4fecdfb2
@ -62,7 +62,8 @@ FileLog_dailySwitch($)
|
||||
map { FileLog_Switch($defs{$_}) } devspec2array("TYPE=FileLog");
|
||||
|
||||
my $t = time();
|
||||
$t = 86400*(int($t/86400)+1)+1-fhemTzOffset($t); # tomorrow, 1s after midnight
|
||||
my $off = fhemTzOffset($t);
|
||||
$t = 86400*(int(($t+$off)/86400)+1)+1-$off; # tomorrow, 1s after midnight
|
||||
InternalTimer($t, "FileLog_dailySwitch", $hash, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user