mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 19:32:42 +00:00
statistics: bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@7186 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ca837fb88d
commit
2d1c865a46
@ -363,7 +363,7 @@ sub statistics_DoStatisticsAll($$)
|
||||
my $regexp = $hash->{DEV_REGEXP};
|
||||
foreach my $devName (sort keys %defs) {
|
||||
if ($devName ne $name && $devName =~ m/^($regexp)$/) {
|
||||
statistics_Log $hash,4,"Doing statistics (type $periodSwitch) for device '$devName'";
|
||||
statistics_Log $hash,4,"Doing statistics (period $periodSwitch) for device '$devName'";
|
||||
statistics_DoStatistics($hash, $defs{$devName}, $periodSwitch);
|
||||
}
|
||||
}
|
||||
@ -409,9 +409,10 @@ sub statistics_DoStatistics($$$)
|
||||
while (my ($aName, $statType) = each (%addedReadingsAttr) )
|
||||
{
|
||||
my @addedReadings = split /,/, AttrVal($hashName, $aName, "");
|
||||
foreach( keys @addedReadings )
|
||||
foreach( @addedReadings )
|
||||
{
|
||||
$statReadings{$_} = $statType;
|
||||
statistics_Log $hash, 5, "Assigned reading '$_' from attribute '$aName' to statistic type $statType.";
|
||||
$statReadings{$_} = $statType;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user