2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

statistics: bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@8931 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch 2015-07-10 17:13:20 +00:00
parent 454b088089
commit 792bb6f454

View File

@ -833,14 +833,14 @@ sub statistics_doStatisticSpecialPeriod ($$$$$)
########################################
sub statistics_doStatisticSpecialPeriod2 ($$$$$)
{
my ($hash, $dev, $readingName,$statType, $period, $decPlaces, $value) = @_;
my ($hash, $devName, $readingName,$statType, $period, $decPlaces, $value) = @_;
my $name = $hash->{NAME};
my $specialPeriod = AttrVal($name, "specialPeriod", "");
return unless $specialPeriod;
if ("$devName:$readingName:$statType:$period=([\d:]+)" =~ /^($specialPeriod)$/) {
# if ("$devName:$readingName:$statType:$period=([\d:]+)" =~ /^($specialPeriod)$/) {
my $statReadingName = $hash->{PREFIX} . ucfirst($readingName) . ucfirst($statType) . ucfirst($period);
my $hiddenReadingName = ".".$dev->{NAME} . ":" . $readingName . ":" . $statType . ":" . $period;
@ -1278,7 +1278,7 @@ sub statistics_UpdateDevReading($$$$)
</li><br>
</ul>
&Uuml;ber die <a href="#statisticsattr">Attribute</a> <code>deltaReadings, durationReadings, minAvgMaxReadings, tendencyReadings</code> k&ouml;nnen weitere Ger&auml;tewerte hinzugef&uuml;gt oder
einem anderem Statistik-Typ zugeordnet werden.
einem anderen Statistik-Typ zugeordnet werden.
<br>&nbsp;
<br>