From cdad3139803d36c5fbdced07d368235d5d13773d Mon Sep 17 00:00:00 2001 From: Eirik Oeverby Date: Tue, 10 Aug 2010 22:42:12 +0200 Subject: Fixed LB pool status display to match current config --- usr/local/www/status_lb_pool.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'usr/local/www/status_lb_pool.php') diff --git a/usr/local/www/status_lb_pool.php b/usr/local/www/status_lb_pool.php index b5d0103..47eb31d 100755 --- a/usr/local/www/status_lb_pool.php +++ b/usr/local/www/status_lb_pool.php @@ -134,10 +134,10 @@ foreach( (array) $relayctl as $line) { PRINT ""; switch ($vipent['mode']) { case 'loadbalance': - if($svr[0]!="") PRINT ""; + if($svr[0]!="") PRINT ""; break; case 'failover': - if($svr[0]!="") PRINT ""; + if($svr[0]!="") PRINT ""; break; } PRINT " {$svr[0]}:{$vipent['port']} "; @@ -145,7 +145,17 @@ foreach( (array) $relayctl as $line) { } foreach ((array) $vipent['serversdisabled'] as $server) { $svr = split("\|", $server); - if($svr[0]!="") PRINT " {$svr[0]}:{$vipent['port']} "; + + PRINT ""; + switch ($vipent['mode']) { + case 'loadbalance': + if($svr[0]!="") PRINT ""; + break; + case 'failover': + if($svr[0]!="") PRINT ""; + break; + } + PRINT " {$svr[0]}:{$vipent['port']} "; } ?> -- cgit v1.1