summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-27 16:24:13 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-27 16:24:13 -0300
commit5b13c47cb2391da39472aeed5f6269a913ae831a (patch)
treeac86c5ecefcbdb37b6149aa0d1ac93d28cb6fe9d /usr/local
parentd8fba822bb7e27ee33866585bffda989442dae48 (diff)
downloadpfsense-5b13c47cb2391da39472aeed5f6269a913ae831a.zip
pfsense-5b13c47cb2391da39472aeed5f6269a913ae831a.tar.gz
Do not count active vouchers as used. Fixes #1550
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/status_captiveportal_voucher_rolls.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/status_captiveportal_voucher_rolls.php b/usr/local/www/status_captiveportal_voucher_rolls.php
index 8673faf..62335f2 100644
--- a/usr/local/www/status_captiveportal_voucher_rolls.php
+++ b/usr/local/www/status_captiveportal_voucher_rolls.php
@@ -99,6 +99,8 @@ include("fbegin.inc");
$used = voucher_used_count($rollent['number']);
$active = count(voucher_read_active_db($rollent['number']),$rollent['minutes']);
$ready = $rollent['count'] - $used;
+ /* used also count active vouchers, remove them */
+ $used = $used - $avtive;
?>
<tr>
<td class="listlr">
OpenPOWER on IntegriCloud