2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

git-svn-id: https://svn.fhem.de/fhem/trunk@5802 2b470e98-0d58-463d-a4d8-8e2adae1ed80

This commit is contained in:
tpoitzsch 2014-05-09 17:21:50 +00:00
parent 11a45918f4
commit 4023ad98d2

View File

@ -263,7 +263,7 @@ statistics_DoStatistics($$$)
my $servedBy = $dev->{helper}{_98_statistics}; my $servedBy = $dev->{helper}{_98_statistics};
if ($servedBy ne $hashName) { if ($servedBy ne $hashName) {
my $monReadingValue = ReadingsVal($hashName,"monitoredDevicesUnserved",""); my $monReadingValue = ReadingsVal($hashName,"monitoredDevicesUnserved","");
if ($monReadingValue !~ /regExp/) { if ($monReadingValue !~ /$regExp/) {
if($monReadingValue eq "") { $monReadingValue = $devName;} if($monReadingValue eq "") { $monReadingValue = $devName;}
else {$monReadingValue .= ",".$devName;} else {$monReadingValue .= ",".$devName;}
readingsSingleUpdate($hash,"monitoredDevicesUnserved",$monReadingValue,1); readingsSingleUpdate($hash,"monitoredDevicesUnserved",$monReadingValue,1);