diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-15 03:33:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-15 03:33:18 +0000 |
commit | 767a716ecd96105621e239633c04651a02bd8fb8 (patch) | |
tree | a9455173dba67b71599f611cb3eebb6aaa584745 /etc/inc/lb.inc | |
parent | 3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478 (diff) | |
download | pfsense-767a716ecd96105621e239633c04651a02bd8fb8.zip pfsense-767a716ecd96105621e239633c04651a02bd8fb8.tar.gz |
Correct warnings and errors found eclipse
Diffstat (limited to 'etc/inc/lb.inc')
-rw-r--r-- | etc/inc/lb.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/lb.inc b/etc/inc/lb.inc index 8bb4ca2..62a41fd 100644 --- a/etc/inc/lb.inc +++ b/etc/inc/lb.inc @@ -123,7 +123,9 @@ require_once("functions.inc"); } function get_state($ip){ + $result = ""; $pingcmd = exec("/usr/local/bin/sudo /sbin/ping -c1 -t1 -n ".$ip,$result); + $match = ""; if (preg_match_all('/.*100\%\spacket\sloss.*/',$result[count($result)-1], $match)) return 0; if (preg_match_all('/.*0\%\spacket\sloss.*/',$result[count($result)-2], $match)) |