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