diff options
author | Benny Baumann <BenBE@geshi.org> | 2015-05-05 19:09:30 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2015-05-05 19:09:30 +0200 |
commit | 70f867dca49fa2f999470913ff75f816bcbb700d (patch) | |
tree | e8907b51235fe0c5e9d3d95defa61c685d5221b9 /scripts/cron/refresh_stats.php | |
parent | aaffd10f8439c32bfbb8bfca83c08f98f23fb2c9 (diff) | |
parent | 77ed5c5b06c2dc8fafc74c1be5a6197bb45e0f11 (diff) | |
download | cacert-devel-70f867dca49fa2f999470913ff75f816bcbb700d.tar.gz cacert-devel-70f867dca49fa2f999470913ff75f816bcbb700d.tar.xz cacert-devel-70f867dca49fa2f999470913ff75f816bcbb700d.zip |
Merge branch 'bug-1042' into testserver-stable
Diffstat (limited to 'scripts/cron/refresh_stats.php')
-rwxr-xr-x | scripts/cron/refresh_stats.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/cron/refresh_stats.php b/scripts/cron/refresh_stats.php index 4f18b0b..b9d1f8e 100755 --- a/scripts/cron/refresh_stats.php +++ b/scripts/cron/refresh_stats.php @@ -122,23 +122,23 @@ function getDataFromLive() { $stats['users_1to49'] = number_format(tc( "select count(*) as `count` from ( select 1 from `notary` - where `deleted` = 0 + where `deleted` = 0 AND `method` != 'Administrative Increase' AND `from` != `to` group by `to` - having sum(`points`) > 0 and sum(`points`) < 50 + having sum(`awarded`) > 0 and sum(`awarded`) < 50 ) as `low_points`")); $stats['users_50to99'] = number_format(tc( "select count(*) as `count` from ( select 1 from `notary` - where `deleted` = 0 + where `deleted` = 0 AND `method` != 'Administrative Increase' AND `from` != `to` group by `to` - having sum(`points`) >= 50 and sum(`points`) < 100 + having sum(`awarded`) >= 50 and sum(`awarded`) < 100 ) as `high_points`")); $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)); - $assurercount= assurer_count($startdate, $enddate,1); + $assurercount = assurer_count($startdate, $enddate, 1); $stats['assurer_with_test'] = number_format($assurercount); $stats['assurer_candidates'] = number_format(assurer_count($startdate, $enddate,0) - $assurercount); |