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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user