32_SYSSTAT.pm: set snmp session timeout to two seconds (instead of the default 5 seconds)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9261 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2015-09-16 08:54:09 +00:00
parent 1b0c36b5c1
commit adcaf00d6a

View File

@@ -139,6 +139,7 @@ SYSSTAT_InitSNMP($)
} elsif ( !defined($session) ) { } elsif ( !defined($session) ) {
Log3 $name, 2, "$name: can't connect to host $host"; Log3 $name, 2, "$name: can't connect to host $host";
} else { } else {
$session->timeout(3);
$hash->{session} = $session; $hash->{session} = $session;
} }
} }