Bugfix: zombie FS20 devices and some small changes

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@59 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2007-05-16 11:25:11 +00:00
parent 55821bfc75
commit aab072d4f9
8 changed files with 22 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ FileLog_Initialize($)
$hash->{UndefFn} = "FileLog_Undef";
$hash->{NotifyFn} = "FileLog_Log";
$hash->{AttrFn} = "FileLog_Attr";
$hash->{AttrList} = "disable:0,1 logtype";
$hash->{AttrList} = "disable:0,1 logtype nrarchive archivedir";
}
@@ -55,6 +55,13 @@ FileLog_Undef($$)
return undef;
}
sub
HandleArchiving($)
{
my ($log) = @_;
if(!
}
#####################################
sub
@@ -83,6 +90,7 @@ FileLog_Log($$)
my $cn = ResolveDateWildcards($log->{FILENAME}, @t);
if($cn ne $log->{CURRENT}) { # New logfile
HandleArchiving($log);
$fh->close();
$fh = new IO::File ">>$cn";
if(!defined($fh)) {