This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.0 has been updated
via 929325af79936bdfa1e35729954a28b3b497f739 (commit)
from 65dcb0adbe63c3f9ef47afd19b03e512f03a2bc2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=929325af79936bdfa1e35729954a28b3b497f739
commit 929325af79936bdfa1e35729954a28b3b497f739
Author: Sylvain Beucler <[email protected]>
Date: Wed Jul 1 19:14:29 2015 +0200
stats: fix weekly aggregation (2)
diff --git a/src/common/reporting/ReportSetup.class.php
b/src/common/reporting/ReportSetup.class.php
index a4e64da..3c12347 100644
--- a/src/common/reporting/ReportSetup.class.php
+++ b/src/common/reporting/ReportSetup.class.php
@@ -533,7 +533,7 @@ class ReportSetup extends Report {
*/
function backfill_users_added_weekly($count=10000) {
- $arr = array_slice ($this->getMonthStartArr(), -$count-1);
+ $arr = array_slice ($this->getWeekStartArr(), -$count-1);
rsort($arr);
for ($i=0; $i<count($arr); $i++) {
@@ -791,7 +791,7 @@ class ReportSetup extends Report {
*/
function backfill_users_cum_weekly($count=10000) {
- $arr = array_slice ($this->getMonthStartArr(), -$count-1);
+ $arr = array_slice ($this->getWeekStartArr(), -$count-1);
rsort($arr);
for ($i=0; $i<count($arr); $i++) {
@@ -830,7 +830,7 @@ class ReportSetup extends Report {
*/
function backfill_groups_cum_weekly($count=10000) {
- $arr = array_slice ($this->getMonthStartArr(), -$count-1);
+ $arr = array_slice ($this->getWeekStartArr(), -$count-1);
rsort($arr);
for ($i=0; $i<count($arr); $i++) {
@@ -1065,7 +1065,7 @@ class ReportSetup extends Report {
*/
function backfill_user_act_weekly($count=10000) {
- $arr = array_slice ($this->getMonthStartArr(), -$count-1);
+ $arr = array_slice ($this->getWeekStartArr(), -$count-1);
rsort($arr);
for ($i=0; $i<count($arr); $i++) {
@@ -1285,7 +1285,7 @@ class ReportSetup extends Report {
*/
function backfill_group_act_weekly($count=10000) {
- $arr = array_slice ($this->getMonthStartArr(), -$count-1);
+ $arr = array_slice ($this->getWeekStartArr(), -$count-1);
rsort($arr);
for ($i=0; $i<count($arr); $i++) {
-----------------------------------------------------------------------
Summary of changes:
src/common/reporting/ReportSetup.class.php | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits