diff options
author | Phil Davis <phil.davis@inf.org> | 2016-04-13 19:20:17 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-04-13 19:20:17 +0545 |
commit | ebcd8a306c3e89ff3767bfaea03320fa211d8429 (patch) | |
tree | 87b7b0713428739c17cae907f36e1c58448070e8 /src/etc/inc/gwlb.inc | |
parent | 3510c788351a1c157925b2a36379a671c979da64 (diff) | |
download | pfsense-ebcd8a306c3e89ff3767bfaea03320fa211d8429.zip pfsense-ebcd8a306c3e89ff3767bfaea03320fa211d8429.tar.gz |
Put gateway name and group around the correct way
Redmine #6134
Forum: https://forum.pfsense.org/index.php?topic=109781.0
Originally broken by commit: https://github.com/pfsense/pfsense/commit/d18f3f6e09b86359395cd78db2e19f721818b992
Diffstat (limited to 'src/etc/inc/gwlb.inc')
-rw-r--r-- | src/etc/inc/gwlb.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index e712319..415eed5 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -925,15 +925,15 @@ function return_gateway_groups_array() { $status = $gateways_status[$gwname]; $gwdown = false; if (stristr($status['status'], "down")) { - $msg = sprintf(gettext('MONITOR: %1$s is down, omitting from routing group %2$s'), $group['name'], $gwname); + $msg = sprintf(gettext('MONITOR: %1$s is down, omitting from routing group %2$s'), $gwname, $group['name']); $gwdown = true; } else if (stristr($status['status'], "loss") && strstr($group['trigger'], "loss")) { /* packet loss */ - $msg = sprintf(gettext('MONITOR: %1$s has packet loss, omitting from routing group %2$s'), $group['name'], $gwname); + $msg = sprintf(gettext('MONITOR: %1$s has packet loss, omitting from routing group %2$s'), $gwname, $group['name']); $gwdown = true; } else if (stristr($status['status'], "delay") && strstr($group['trigger'] , "latency")) { /* high latency */ - $msg = sprintf(gettext('MONITOR: %1$s has high latency, omitting from routing group %2$s'), $group['name'], $gwname); + $msg = sprintf(gettext('MONITOR: %1$s has high latency, omitting from routing group %2$s'), $gwname, $group['name']); $gwdown = true; } if ($gwdown == true) { |