mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
statistics: bugfix2
git-svn-id: https://svn.fhem.de/fhem/trunk@7162 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b29baf12dc
commit
b37c1cf240
@ -451,10 +451,13 @@ sub statistics_DoStatistics($$$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($statisticDone != 1)
|
||||||
|
{
|
||||||
if ( exists ($dev->{READINGS}{state}) && $dev->{READINGS}{state}{VAL} ne "defined" ) {
|
if ( exists ($dev->{READINGS}{state}) && $dev->{READINGS}{state}{VAL} ne "defined" ) {
|
||||||
statistics_doStatisticDuration $hash, $dev, "state", $periodSwitch;
|
statistics_doStatisticDuration $hash, $dev, "state", $periodSwitch;
|
||||||
$statisticDone = 1;
|
$statisticDone = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($periodSwitch >0) {readingsEndUpdate($dev,1);}
|
if ($periodSwitch >0) {readingsEndUpdate($dev,1);}
|
||||||
else {readingsEndUpdate($dev,0);}
|
else {readingsEndUpdate($dev,0);}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user