summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-09-23 09:55:05 -0400
committerjim-p <jimp@pfsense.org>2013-09-23 09:56:35 -0400
commit9e3784217b322f0e292bbec28ed87abf7d00677e (patch)
tree1dfe387e5a9d3478ed83a0e77cdad8b428b334fa /etc
parent472ad9a0e58f0e544f2de65d540de27e9da049dc (diff)
downloadpfsense-9e3784217b322f0e292bbec28ed87abf7d00677e.zip
pfsense-9e3784217b322f0e292bbec28ed87abf7d00677e.tar.gz
Fix CP stats generation for concurrent users. Fixes #3225
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/rrd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index af1908b..d09ef82 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -800,7 +800,7 @@ function enable_rrd_graphing() {
/* the Captive Portal stats gathering function. */
$rrdupdatesh .= "\n";
$rrdupdatesh .= "# polling Captive Portal for number of concurrent users\n";
- $rrdupdatesh .= "CP=`$php -q $captiveportal_gather '$cpkey' $concurrent`\n";
+ $rrdupdatesh .= "CP=`${php} -q ${captiveportal_gather} '${cpkey}' 'concurrent'`\n";
$rrdupdatesh .= "$rrdtool update $concurrent_filename \${CP}\n";
$loggedin_filename = $rrddbpath . $ifname . '-' . $cpkey . $captiveportalloggedin;
@@ -836,7 +836,7 @@ function enable_rrd_graphing() {
/* the Captive Portal stats gathering function. */
$rrdupdatesh .= "\n";
$rrdupdatesh .= "# polling Captive Portal for number of logged in users\n";
- $rrdupdatesh .= "CP=`$php -q $captiveportal_gather $cpkey loggedin`\n";
+ $rrdupdatesh .= "CP=`${php} -q ${captiveportal_gather} '${cpkey}' 'loggedin'`\n";
$rrdupdatesh .= "$rrdtool update $loggedin_filename \${CP}\n";
}
OpenPOWER on IntegriCloud