[Fusionforge-commits] r8853 - trunk/gforge/cronjobs

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Feb 23 14:02:23 CET 2010


Author: lolando
Date: 2010-02-23 14:02:22 +0100 (Tue, 23 Feb 2010)
New Revision: 8853

Modified:
   trunk/gforge/cronjobs/gather_scm_stats.php
Log:
Added command-line option to gather all stats from the start

Modified: trunk/gforge/cronjobs/gather_scm_stats.php
===================================================================
--- trunk/gforge/cronjobs/gather_scm_stats.php	2010-02-23 11:02:11 UTC (rev 8852)
+++ trunk/gforge/cronjobs/gather_scm_stats.php	2010-02-23 13:02:22 UTC (rev 8853)
@@ -43,7 +43,10 @@
 	return false;
 }
 
-$mode = 'day' ;			// Override to 'all' to parse the whole history
+$mode = 'day' ;
+if (count ($argv) >= 2 && $argv[1] == '--all') {
+	$mode = 'all' ;
+}
 
 while ($data = db_fetch_array ($res)) {
 	if ($mode == 'day') {




More information about the Fusionforge-commits mailing list