diff options
author | jim-p <jimp@pfsense.org> | 2013-09-23 09:55:05 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-09-23 09:56:35 -0400 |
commit | 9e3784217b322f0e292bbec28ed87abf7d00677e (patch) | |
tree | 1dfe387e5a9d3478ed83a0e77cdad8b428b334fa /usr/local/bin/captiveportal_gather_stats.php | |
parent | 472ad9a0e58f0e544f2de65d540de27e9da049dc (diff) | |
download | pfsense-9e3784217b322f0e292bbec28ed87abf7d00677e.zip pfsense-9e3784217b322f0e292bbec28ed87abf7d00677e.tar.gz |
Fix CP stats generation for concurrent users. Fixes #3225
Diffstat (limited to 'usr/local/bin/captiveportal_gather_stats.php')
-rw-r--r-- | usr/local/bin/captiveportal_gather_stats.php | 3 |
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"; |