aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd/openbgpd_status.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-07-24 10:25:27 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-07-24 10:25:27 -0300
commit29a5a9477cb51bc53c7e3412358208c630726ced (patch)
tree52106200f372c8115c1c07c798073cb639f107d2 /config/openbgpd/openbgpd_status.php
parent68f9d510e75cca320e0a456f9ff6a2aef3bb171f (diff)
downloadpfsense-packages-29a5a9477cb51bc53c7e3412358208c630726ced.tar.gz
pfsense-packages-29a5a9477cb51bc53c7e3412358208c630726ced.tar.bz2
pfsense-packages-29a5a9477cb51bc53c7e3412358208c630726ced.zip
Respect default limit on first show
Diffstat (limited to 'config/openbgpd/openbgpd_status.php')
-rw-r--r--config/openbgpd/openbgpd_status.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php
index d712b9f1..e769e9e6 100644
--- a/config/openbgpd/openbgpd_status.php
+++ b/config/openbgpd/openbgpd_status.php
@@ -93,6 +93,7 @@ function showCmdT($idx, $title, $command) {
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr><td colspan=\"2\" class=\"listtopic\">" . $title . "</td></tr>\n";
+ $limit_default = "all";
if ($idx == "routing") {
$limit_options = array("10", "50", "100", "200", "500", "1000", "all");
$limit_default = "100";
@@ -109,7 +110,7 @@ function showCmdT($idx, $title, $command) {
}
echo "<tr><td colspan=\"2\" class=\"listlr\"><pre id=\"{$idx}\">"; /* no newline after pre */
- echo doCmdT($command);
+ echo doCmdT($command, $limit_default);
echo "</pre></td></tr>\n";
echo "</table>\n";
}