summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/cron/refresh_stats.php8
-rw-r--r--www/stats.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/cron/refresh_stats.php b/scripts/cron/refresh_stats.php
index 6890024..006ac6d 100755
--- a/scripts/cron/refresh_stats.php
+++ b/scripts/cron/refresh_stats.php
@@ -138,9 +138,9 @@ function getDataFromLive() {
$startdate = date("Y-m-d", mktime(0, 0, 0, 1, 1, 2002));
$enddate = date("Y-m-d", mktime(0, 0, 0, 1, 1, date("Y") + 1));
- $stats['aussurers_with_test'] = number_format(assurer_count($startdate, $enddate,1));
+ $stats['assurers_with_test'] = number_format(assurer_count($startdate, $enddate,1));
- $stats['assurer_candidates'] = number_format(assurer_count($startdate, $enddate,0) - $stats['aussurers_with_test']);
+ $stats['assurer_candidates'] = number_format(assurer_count($startdate, $enddate,0) - $stats['assurers_with_test']);
$stats['points_issued'] = number_format(tc(
@@ -299,7 +299,7 @@ function assurer_count($from, $to, $type = 1){
FROM cacert.notary as n
WHERE 1
AND n.`from` != n.`to`
- AND (n.`deleted` = '0000-00-00 00:00:00' OR n.`deleted` >= @a)
+ AND (n.`deleted` = '0000-00-00 00:00:00')
AND n.`when` < @a
$atype
GROUP by n.`to`
@@ -312,7 +312,7 @@ function assurer_count($from, $to, $type = 1){
FROM cacert.notary as n
WHERE 1
AND n.`from` != n.`to`
- AND (n.`deleted` = '0000-00-00 00:00:00' OR n.`deleted` >= @b)
+ AND (n.`deleted` = '0000-00-00 00:00:00')
AND n.`when` < @b
$btype
GROUP by n.`to`
diff --git a/www/stats.php b/www/stats.php
index c16ee5f..1188f4e 100644
--- a/www/stats.php
+++ b/www/stats.php
@@ -87,7 +87,7 @@
</tr>
<tr>
<td class="DataTD"><?=_("Assurers with test")?>:</td>
- <td class="DataTD"><?=$stats['aussurers_with_test'];?></td>
+ <td class="DataTD"><?=$stats['assurers_with_test'];?></td>
</tr>
<tr>
<td class="DataTD"><?=_("Points Issued")?>:</td>