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 cc8d1324da
commit 1c1c204cd4

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");
}