summaryrefslogtreecommitdiffstats
path: root/usr/local
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 10:01:26 -0400
commit428ea19f8abcb4f261e7136e2664494af834239d (patch)
tree718a3475e4ca9edef47624df213137ce310d6326 /usr/local
parent9e768dafa4b34e0983ee02af84216d9d560e9410 (diff)
downloadpfsense-428ea19f8abcb4f261e7136e2664494af834239d.zip
pfsense-428ea19f8abcb4f261e7136e2664494af834239d.tar.gz
Fix CP stats generation for concurrent users. Fixes #3225
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/bin/captiveportal_gather_stats.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/bin/captiveportal_gather_stats.php b/usr/local/bin/captiveportal_gather_stats.php
index 63d91a2..639edef 100644
--- a/usr/local/bin/captiveportal_gather_stats.php
+++ b/usr/local/bin/captiveportal_gather_stats.php
@@ -55,6 +55,7 @@ if(empty($type))
/* echo the rrd required syntax */
echo "N:";
+$result = "NaN";
if ($type == "loggedin") {
@@ -101,7 +102,7 @@ if ($type == "loggedin") {
else {
$result = $current_user_count;
}
-} else
+} elseif ($type == "concurrent")
$result = $no_users;
echo "$result";
OpenPOWER on IntegriCloud