2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

00_MQTT2_SERVER.pm: fix keepAliveFactor (Forum #90145)

git-svn-id: https://svn.fhem.de/fhem/trunk@20035 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-08-20 21:05:12 +00:00
parent bf5005285b
commit 615dd33b2f

View File

@ -82,7 +82,7 @@ MQTT2_SERVER_keepaliveChecker($)
{
my ($hash) = @_;
my $now = gettimeofday();
my $multiplier = AttrVal($hash, "keepaliveFactor", 1.5);
my $multiplier = AttrVal($hash->{NAME}, "keepaliveFactor", 1.5);
if($multiplier) {
foreach my $clName (keys %{$hash->{clients}}) {
my $cHash = $defs{$clName};