repair apptime

git-svn-id: https://svn.fhem.de/fhem/trunk@4743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2014-01-26 10:38:00 +00:00
parent 3a1a3a44db
commit ad8dafc16d
2 changed files with 4 additions and 5 deletions

View File

@@ -5661,12 +5661,11 @@ sub CUL_HM_complConfigTest($){#
RemoveInternalTimer("CUL_HM_complConfigTO"); RemoveInternalTimer("CUL_HM_complConfigTO");
InternalTimer(gettimeofday()+ 1800,"CUL_HM_complConfigTO","CUL_HM_complConfigTO", 0); InternalTimer(gettimeofday()+ 1800,"CUL_HM_complConfigTO","CUL_HM_complConfigTO", 0);
} }
(@{$modules{CUL_HM}{helper}{qReqStat}})
} }
sub CUL_HM_complConfigTO($){ sub CUL_HM_complConfigTO($){
my @arr = @{$modules{CUL_HM}{helper}{confCheckArr}}; my @arr = @{$modules{CUL_HM}{helper}{confCheckArr}};
@{$modules{CUL_HM}{helper}{confCheckArr}} = (); @{$modules{CUL_HM}{helper}{confCheckArr}} = ();
CUL_HM_complConfig($_) foreach (@arr); CUL_HM_complConfig($_) foreach (CUL_HM_noDup(@arr));
} }
sub CUL_HM_complConfig($) {# read config if enabled and not complete sub CUL_HM_complConfig($) {# read config if enabled and not complete
my $name = shift; my $name = shift;

View File

@@ -84,9 +84,9 @@ sub apptime_getTiming($$$@) {
!$defs{$e}{helper}{bm} || !$defs{$e}{helper}{bm} ||
!$defs{$e}{helper}{bm}{$fnName} ){ !$defs{$e}{helper}{bm}{$fnName} ){
$defs{$e}{helper}{bm}{$fnName} =(max =>0, mAr =>"", %{$defs{$e}{helper}{bm}{$fnName}} =(max =>0, mAr =>"",
cnt =>1, tot =>0, cnt =>1, tot =>0,
dmx =>0); dmx =>0);
$h = $defs{$e}{helper}{bm}{$fnName}; $h = $defs{$e}{helper}{bm}{$fnName};
} }