summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/bin')
-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