From bfd26f2c7a7ba2af64e46cefd7da141d07d5288f Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Sun, 25 Jan 2015 07:57:04 +0100 Subject: bug 1357: small correction for assurer calculation --- scripts/cron/refresh_stats.php | 6 +++--- www/stats.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/cron/refresh_stats.php b/scripts/cron/refresh_stats.php index 006ac6d..4f18b0b 100755 --- a/scripts/cron/refresh_stats.php +++ b/scripts/cron/refresh_stats.php @@ -138,10 +138,10 @@ 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['assurers_with_test'] = number_format(assurer_count($startdate, $enddate,1)); - - $stats['assurer_candidates'] = number_format(assurer_count($startdate, $enddate,0) - $stats['assurers_with_test']); + $assurercount= assurer_count($startdate, $enddate,1); + $stats['assurer_with_test'] = number_format($assurercount); + $stats['assurer_candidates'] = number_format(assurer_count($startdate, $enddate,0) - $assurercount); $stats['points_issued'] = number_format(tc( "select sum(greatest(`points`, `awarded`)) as `count` from `notary` diff --git a/www/stats.php b/www/stats.php index 1188f4e..f777f38 100644 --- a/www/stats.php +++ b/www/stats.php @@ -87,7 +87,7 @@ : - + : -- cgit v1.2.1 From 6412d38dd2361032b67330def4702ea04b4263a3 Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Sun, 25 Jan 2015 08:04:06 +0100 Subject: bug 1357: added description for users on stats.php page --- www/stats.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/stats.php b/www/stats.php index f777f38..824f19b 100644 --- a/www/stats.php +++ b/www/stats.php @@ -153,8 +153,9 @@
'; - printf(_("Last updated: %s"), date('Y-m-d H:i:s', $stats['timestamp']));?> + echo _('* user with at least 100 assurance points / assurer with CATS') . '
'; + echo _('Difference of calculation of assurer between total and running total result from assurers that have been deleted from the system.') . '
'; + printf(_("Last updated: %s"), date('Y-m-d H:i:s', $stats['timestamp']));?>
-- cgit v1.2.1