From ec9bb09fe24120e0c644ace439bf1ed0136cd681 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 29 Dec 2011 14:19:41 -0500 Subject: [PATCH] Clarify the potential pitfalls when setting the Frequency Probe and Down parameters. --- usr/local/www/system_gateways_edit.php | 42 +++++++++++++++++--------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 2d158049c7..c7cb10a538 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -449,21 +449,35 @@ function monitor_change() { - - - -
- - + + + +
+

+ +
+ + - - - -
- - + + + +
+ + + + +
+ "; + $interval = is_numeric($pconfig['interval']) ? $pconfig['interval'] : 1; + $down = is_numeric($pconfig['down']) ? $pconfig['down'] : 10; + echo gettext(sprintf("With the current configuration, the total time before this gateway would be considered down would be: %d*%d=%d seconds.", $interval, $down, $interval*$down)); + } ?> + +