aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy.inc
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.inc
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.inc')
-rw-r--r--config/haproxy-devel/haproxy.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc
index 8f7c2a9c..47a85604 100644
--- a/config/haproxy-devel/haproxy.inc
+++ b/config/haproxy-devel/haproxy.inc
@@ -733,7 +733,8 @@ function haproxy_writeconf($configpath) {
fwrite ($fd, "\tbind 127.0.0.1:$localstatsport\n");
fwrite ($fd, "\tmode http\n");
fwrite ($fd, "\tstats enable\n");
- fwrite ($fd, "\tstats refresh 10\n");
+ if (is_numeric($a_global['localstats_refreshtime']))
+ fwrite ($fd, "\tstats refresh {$a_global['localstats_refreshtime']}\n");
fwrite ($fd, "\tstats admin if TRUE\n");
fwrite ($fd, "\tstats uri /haproxy_stats.php?haproxystats=1\n");
fwrite ($fd, "\ttimeout client 5000\n");