summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-08-25 01:19:30 +0200
committerMichael Tänzer <neo@nhng.de>2012-08-25 01:19:30 +0200
commitd4dfe2b9628e2591cc5534c5ac1bf866763228a2 (patch)
treea4f02c1c3a942718b3371d9d223e7b025d496198 /scripts
parent9fa31f772b6f054ef5574330e07f722b130fed17 (diff)
downloadcacert-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')
-rwxr-xr-xscripts/cron/refresh_stats.php2
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;