statistics: bugfix2
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7162 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -451,9 +451,12 @@ sub statistics_DoStatistics($$$)
|
||||
}
|
||||
}
|
||||
|
||||
if ( exists ($dev->{READINGS}{state}) && $dev->{READINGS}{state}{VAL} ne "defined" ) {
|
||||
statistics_doStatisticDuration $hash, $dev, "state", $periodSwitch;
|
||||
$statisticDone = 1;
|
||||
if ($statisticDone != 1)
|
||||
{
|
||||
if ( exists ($dev->{READINGS}{state}) && $dev->{READINGS}{state}{VAL} ne "defined" ) {
|
||||
statistics_doStatisticDuration $hash, $dev, "state", $periodSwitch;
|
||||
$statisticDone = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if ($periodSwitch >0) {readingsEndUpdate($dev,1);}
|
||||
|
||||
Reference in New Issue
Block a user