2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

FB_CALLMONITOR: exclude also deflected calls from calls_count reading

git-svn-id: https://svn.fhem.de/fhem/trunk@21691 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2020-04-15 08:33:50 +00:00
parent b2235198cd
commit d613800fe4

View File

@ -577,7 +577,7 @@ FB_CALLMONITOR_Read($)
delete($hash->{helper}{TEMP}{$array[2]});
}
readingsBulkUpdate($hash, "calls_count", scalar grep { not $hash->{helper}{TEMP}{$_}{".filtered"} } keys %{$hash->{helper}{TEMP}});
readingsBulkUpdate($hash, "calls_count", scalar grep { not ($hash->{helper}{TEMP}{$_}{".filtered"} or $hash->{helper}{TEMP}{$_}{".deflected"}) } keys %{$hash->{helper}{TEMP}});
readingsEndUpdate($hash, 1);
}