diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2014-03-06 00:28:56 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2014-03-06 00:29:52 +0100 |
commit | 04205b537352d88afd2f2dd0be9ab1944e97160d (patch) | |
tree | ac23405c6507daa4620433e18a3bc094be66c974 /config/haproxy-devel/haproxy.inc | |
parent | 51b49f5f1a214a565194ea2db3bb0231689309c7 (diff) | |
download | pfsense-packages-04205b537352d88afd2f2dd0be9ab1944e97160d.tar.gz pfsense-packages-04205b537352d88afd2f2dd0be9ab1944e97160d.tar.bz2 pfsense-packages-04205b537352d88afd2f2dd0be9ab1944e97160d.zip |
haproxy-devel, make stats-tab refresh timers configurable.
Diffstat (limited to 'config/haproxy-devel/haproxy.inc')
-rw-r--r-- | config/haproxy-devel/haproxy.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc index 9bc0dd80..a34b20d8 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"); |