fix RegRex in PresenceRun Fn
This commit is contained in:
parent
4a604c3554
commit
cc7e18d589
@ -1712,10 +1712,7 @@ sub LGTV_WebOS_PresenceRun {
|
|||||||
"LGTV_WebOS ($name) - ping command returned with output:\n$tmp" );
|
"LGTV_WebOS ($name) - ping command returned with output:\n$tmp" );
|
||||||
$response = "$name|"
|
$response = "$name|"
|
||||||
. (
|
. (
|
||||||
(
|
( $tmp =~ /\d+ [Bb]ytes (from|von)/x && $tmp !~ /[Uu]nreachable/x )
|
||||||
$tmp =~ /\d+ [Bb]ytes (from|von)/x
|
|
||||||
&& !$tmp =~ /[Uu]nreachable/x
|
|
||||||
)
|
|
||||||
? "present"
|
? "present"
|
||||||
: "absent"
|
: "absent"
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user