diff options
author | jim-p <jimp@pfsense.org> | 2011-12-29 14:19:41 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-12-29 14:23:01 -0500 |
commit | ec9bb09fe24120e0c644ace439bf1ed0136cd681 (patch) | |
tree | 49aaed5d671be12366d77228f60e220e7c0c82d4 /usr/local | |
parent | 802a40eb089e0796f82f7488f99f8ff8a9232122 (diff) | |
download | pfsense-ec9bb09fe24120e0c644ace439bf1ed0136cd681.zip pfsense-ec9bb09fe24120e0c644ace439bf1ed0136cd681.tar.gz |
Clarify the potential pitfalls when setting the Frequency Probe and Down parameters.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 2d15804..c7cb10a 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -449,21 +449,35 @@ function monitor_change() { </td> </tr> <tr> - <td width="22%" valign="top" class="vncellreq"><?=gettext("Down");?></td> - <td width="78%" class="vtable"> - <input name="down" type="text" class="formfld unknown" id="down" size="2" - value="<?=htmlspecialchars($pconfig['down']);?>"> - <br> <span class="vexpl"><?=gettext("This defines the down time for the alarm to fire in seconds. Default is 10.");?></span></td> - </td> - </tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Frequency Probe");?></td> + <td width="78%" class="vtable"> + <input name="interval" type="text" class="formfld unknown" id="interval" size="2" + value="<?=htmlspecialchars($pconfig['interval']);?>"> + <br><span class="vexpl"> + <?=gettext("This defines how often that an icmp probe will be sent in seconds. Default is 1.");?><br/><br/> + <?=gettext("NOTE: The quality graph is averaged over seconds, not intervals, so as the frequency probe is increased the accuracy of the quality graph is decreased.");?> + </span></td> + </td> + </tr> <tr> - <td width="22%" valign="top" class="vncellreq"><?=gettext("Frequency Probe");?></td> - <td width="78%" class="vtable"> - <input name="interval" type="text" class="formfld unknown" id="interval" size="2" - value="<?=htmlspecialchars($pconfig['interval']);?>"> - <br> <span class="vexpl"><?=gettext("This defines the frequency that an icmp probe will be sent in seconds. Default is 1.");?></span></td> - </td> - </tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Down");?></td> + <td width="78%" class="vtable"> + <input name="down" type="text" class="formfld unknown" id="down" size="2" + value="<?=htmlspecialchars($pconfig['down']);?>"> + <br> <span class="vexpl"><?=gettext("This defines the number of bad probes before the alarm will fire. Default is 10.");?></span></td> + </td> + </tr> + <tr> + <td colspan="2"> + <?= gettext("NOTE: The total time before a gateway is down is the product of the Frequency Probe and the Down fields. By default this is 1*10=10 seconds."); ?><br/> + <?php if (is_numeric($pconfig['interval']) || is_numeric($pconfig['down'])) { + echo "<br/>"; + $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)); + } ?> + </td> + </tr> </table> </div> </td> |