2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-25 03:39:21 +00:00

92_FileLog.pm: reset the counter after clear (Forum #56051)

git-svn-id: https://svn.fhem.de/fhem/trunk@14206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-05-06 11:42:54 +00:00
parent e6bca9ed44
commit 117d380eee

View File

@ -276,6 +276,7 @@ FileLog_Set($@)
$fh->close();
if($cmd eq "clear") {
$fh = new IO::File(">$cn");
setReadingsVal($hash, "linesInTheFile", 0, TimeNow());
} else {
$fh = new IO::File(">>$cn");
}