From 428ea19f8abcb4f261e7136e2664494af834239d Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 23 Sep 2013 09:55:05 -0400 Subject: Fix CP stats generation for concurrent users. Fixes #3225 --- usr/local/bin/captiveportal_gather_stats.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local/bin') 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"; -- cgit v1.1