mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-15 04:20:56 +00:00
98_ping: Fix syntax errors on startup
git-svn-id: https://svn.fhem.de/fhem/trunk@10135 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ceb92852a7
commit
6e31980983
@ -63,7 +63,7 @@ sub ping_Define($$)
|
||||
$hash->{TIMEOUT} = $timeout;
|
||||
|
||||
return "ERROR: mode must be one of tcp,udp,icmp" if ($hash->{MODE} !~ "tcp|udp|icmp");
|
||||
return "ERROR: timeout must be 0 or higher." if (($hash->{timeout} !~ /^\d*$/) || ($hash->{timeout} < 0));
|
||||
return "ERROR: timeout must be 0 or higher." if (($hash->{TIMEOUT} !~ /^\d*$/) || ($hash->{TIMEOUT} < 0));
|
||||
|
||||
$attr{$name}{"checkInterval"} = 10 if (!defined($attr{$name}{"checkInterval"}));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user