diff options
author | Michael Tänzer <neo@nhng.de> | 2012-08-25 01:19:30 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2012-08-25 01:19:30 +0200 |
commit | d4dfe2b9628e2591cc5534c5ac1bf866763228a2 (patch) | |
tree | a4f02c1c3a942718b3371d9d223e7b025d496198 /scripts/cron/refresh_stats.php | |
parent | 9fa31f772b6f054ef5574330e07f722b130fed17 (diff) | |
download | cacert-devel-d4dfe2b9628e2591cc5534c5ac1bf866763228a2.tar.gz cacert-devel-d4dfe2b9628e2591cc5534c5ac1bf866763228a2.tar.xz cacert-devel-d4dfe2b9628e2591cc5534c5ac1bf866763228a2.zip |
bug 1004: Count awarded points, not only rounded down ones
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'scripts/cron/refresh_stats.php')
-rwxr-xr-x | scripts/cron/refresh_stats.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cron/refresh_stats.php b/scripts/cron/refresh_stats.php index 6ad5e64..5cfa720 100755 --- a/scripts/cron/refresh_stats.php +++ b/scripts/cron/refresh_stats.php @@ -149,7 +149,7 @@ function getDataFromLive() { )); $stats['points_issued'] = number_format(tc( - "select sum(`points`) as `count` from `notary`")); + "select sum(greatest(`points`, `awarded`)) as `count` from `notary`")); $totalusers=0; $totassurers=0; |