Project

General

Profile

« Previous | Next » 

Revision 54b78cc1

Added by Ermal LUÇI almost 15 years ago

Fix checking the status of gateways. Typos and unset variables! Spotted-by: Mark Huijgen

View differences:

etc/inc/gwlb.inc
375 375
				$backupplan[$tier][] = $gwname;
376 376

  
377 377
				/* check if the gateway is available before adding it to the array */
378
				if (!empty($gateway_status[$gwname])) {
378
				if (!empty($gateways_status[$gwname])) {
379
					$status = $gateways_status[$gwname];
379 380
					$gwdown = false;
380 381
					if (stristr($status['status'], "down")) {
381 382
						$msg = "MONITOR: {$gwname} has high latency, removing from routing group";

Also available in: Unified diff