aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-04-15 05:06:47 +0000
committerBill Marquette <billm@pfsense.org>2005-04-15 05:06:47 +0000
commitaa639e7b2db5d236250465150a8816b63d06379e (patch)
treeacf65bcfbe7f253a4b660376090e9293d7ddad5e /packages
parentd714ef3f75a635b0d3a3e7701da2716fc1d0e729 (diff)
downloadpfsense-packages-aa639e7b2db5d236250465150a8816b63d06379e.tar.gz
pfsense-packages-aa639e7b2db5d236250465150a8816b63d06379e.tar.bz2
pfsense-packages-aa639e7b2db5d236250465150a8816b63d06379e.zip
Fix typo (unused var anyway)
Add a comment on how to make this a little faster (too tired to do it personally) Minor cleanup of a var and function that is no longer needed
Diffstat (limited to 'packages')
-rw-r--r--packages/carp_status.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php
index af9922fa..036ad096 100644
--- a/packages/carp_status.php
+++ b/packages/carp_status.php
@@ -82,14 +82,16 @@ if($config['installedpackages']['carp']['config'] <> "")
$pfsync = $carp['pfsync'];
$synciface = $carp['synciface'];
$carp_int = find_carp_interface($ipaddress);
+ // XXX - billm - should really 'ifconfig -a |grep carp:' and assign each interface found to an array
+ // using vhid as identifier and pull from that instead of hitting ifconfig every time through this loop
$status = get_carp_interface_status($carp_int);
if(isset($carp['balancing'])) $balancing = "true"; else $balancing = "false";
- if(isset($carp['premtpion'])) $premption = "true"; else $premption = "false";
- if($synciface <> "") $sync_status = get_pfsync_interface_status($synciface);
+ if(isset($carp['premption'])) $premption = "true"; else $premption = "false";
+ // if($synciface <> "") $sync_status = get_pfsync_interface_status($synciface);
echo "<tr>";
echo "<td class=\"listlr\"><center>" . $carp_int . "</td>";
echo "<td class=\"listlr\"><center>" . $ipaddress . "</td>";
- echo "<td class=\"listlr\"><center>" . $status . "<br>" . $sync_status . "</td>";
+ echo "<td class=\"listlr\"><center>" . $status . "</td>";
echo "</tr>";
}