aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy_stats.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@pfSense.org>2014-03-13 15:05:54 -0300
committerRenato Botelho <garga@pfSense.org>2014-03-13 15:05:54 -0300
commit00591e4cfe9140aef399f2d47e7417a6c3387403 (patch)
treeaff2af6913a7c2f403e46f621356e9736c173051 /config/haproxy-devel/haproxy_stats.php
parent7b2c551780d9e2049257740dad17cb1f9841d326 (diff)
parent04205b537352d88afd2f2dd0be9ab1944e97160d (diff)
downloadpfsense-packages-00591e4cfe9140aef399f2d47e7417a6c3387403.tar.gz
pfsense-packages-00591e4cfe9140aef399f2d47e7417a6c3387403.tar.bz2
pfsense-packages-00591e4cfe9140aef399f2d47e7417a6c3387403.zip
Merge pull request #618 from PiBa-NL/hap_stats_timers
haproxy-devel, make stats-tab refresh timers configurable.
Diffstat (limited to 'config/haproxy-devel/haproxy_stats.php')
-rw-r--r--config/haproxy-devel/haproxy_stats.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_stats.php b/config/haproxy-devel/haproxy_stats.php
index 8ad04c92..752bd8d7 100644
--- a/config/haproxy-devel/haproxy_stats.php
+++ b/config/haproxy-devel/haproxy_stats.php
@@ -65,7 +65,8 @@ if (isset($_GET['haproxystats']) || isset($_GET['scope']) || (isset($_POST) && i
}
require_once("guiconfig.inc");
if (isset($_GET['showsticktablecontent'])){
- header("Refresh: 2");
+ if (is_numeric($pconfig['localstats_sticktable_refreshtime']))
+ header("Refresh: {$pconfig['localstats_sticktable_refreshtime']}");
}
$shortcut_section = "haproxy";
require_once("haproxy.inc");
@@ -163,7 +164,7 @@ include("head.inc");
if (isset($_GET['showsticktablecontent'])){
$sticktablename = $_GET['showsticktablecontent'];
echo "<td colspan='2'>";
- echo "TESTJe<br/>";
+ echo "Contents of the sticktable: $sticktablename<br/>";
$res = haproxy_socket_command("show table $sticktablename");
foreach($res as $line){
echo "<br/>".print_r($line,true);