[Evolvis-commits] r245: Working on stats↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 25 14:12:14 CET 2010


Author: mirabilos
Date: 2010-02-25 13:12:14 +0000 (Thu, 25 Feb 2010)
New Revision: 245

Modified:
   trunk/gforge_base/evolvisforge/
   trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/db_stats_cvs_history.pl
   trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/stats_tables.sql
Log:
Working on stats



Property changes on: trunk/gforge_base/evolvisforge
___________________________________________________________________
Name: bzr:revision-info
   - timestamp: 2001-08-14 15:13:08.000000000 +0000
committer: cbayle

   + timestamp: 2001-08-15 12:35:17.000000000 +0000
committer: cbayle

Name: bzr:file-ids
   - gforge/cronjobs/stats/cvsserver/stats_tables.sql	15 at 9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk%2Fgforge%2Fcronjobs%2Fstats%2Fcvsserver%2Fstats_tables.sql

   + gforge/cronjobs/stats/cvsserver/db_stats_cvs_history.pl	10 at 9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk%2Fgforge%2Fcronjobs%2Fstats%2Fcvsserver%2Fdb_stats_cvs_history.pl
gforge/cronjobs/stats/cvsserver/stats_tables.sql	15 at 9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk%2Fgforge%2Fcronjobs%2Fstats%2Fcvsserver%2Fstats_tables.sql

Name: bzr:revision-id:v4
   - 1 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:1
2 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:2
3 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:7
4 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:9
5 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:10
6 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:11
7 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:12
8 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:13
9 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:14
10 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:15

   + 1 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:1
2 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:2
3 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:7
4 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:9
5 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:10
6 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:11
7 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:12
8 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:13
9 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:14
10 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:15
11 svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:16

Name: bzr:text-parents
   - 
   + gforge/cronjobs/stats/cvsserver/db_stats_cvs_history.pl	svn-v4:9d84d37e-dcb1-4aad-b103-6f3d92f53bf6:trunk:14


Modified: trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/db_stats_cvs_history.pl
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/db_stats_cvs_history.pl	2010-02-25 13:12:10 UTC (rev 244)
+++ trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/db_stats_cvs_history.pl	2010-02-25 13:12:14 UTC (rev 245)
@@ -77,7 +77,7 @@
 
 $dbh->{AutoCommit} = 0;
 
-$dbh->do("DELETE FROM debian_stats_cvs_group WHERE month='$year$month' AND day='$day'");
+$dbh->do("DELETE FROM stats_cvs_group WHERE month='$year$mon' AND day='$day'");
 
 ## begin parsing the log file line by line.
 print "Parsing the information into the database..." if $verbose;
@@ -97,9 +97,9 @@
 			next;
 		}
 			
-		$sql = "INSERT INTO debian_stats_cvs_group
+		$sql = "INSERT INTO stats_cvs_group
 			(month,day,group_id,checkouts,commits,adds)
-			VALUES ('$year$month','$day','$group_id','$checkouts','$commits','$adds')";
+			VALUES ('$year$mon','$day','$group_id','$checkouts','$commits','$adds')";
 
 		$dbh->do( $sql );
 

Modified: trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/stats_tables.sql
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/stats_tables.sql	2010-02-25 13:12:10 UTC (rev 244)
+++ trunk/gforge_base/evolvisforge/gforge/cronjobs/stats/cvsserver/stats_tables.sql	2010-02-25 13:12:14 UTC (rev 245)
@@ -1,7 +1,8 @@
-DROP INDEX "debian_statscvsgroup_month_day_group";
-DROP TABLE "debian_stats_cvs_group";
 
-CREATE TABLE "debian_stats_cvs_group" (
+DROP INDEX "statscvsgroup_month_day_group";
+DROP TABLE "stats_cvs_group";
+
+CREATE TABLE "stats_cvs_group" (
         "month" integer DEFAULT 0 NOT NULL,
         "day" integer DEFAULT 0 NOT NULL,
         "group_id" integer DEFAULT 0 NOT NULL,
@@ -9,6 +10,18 @@
         "commits" integer DEFAULT 0 NOT NULL,
         "adds" integer DEFAULT 0 NOT NULL
 );
-CREATE UNIQUE INDEX "debian_statscvsgroup_month_day_group" on "debian_stats_cvs_group" 
+CREATE UNIQUE INDEX "statscvsgroup_month_day_group" on "stats_cvs_group" 
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
+
+DROP TABLE "stats_cvs_user";
+CREATE TABLE "stats_cvs_user" (
+	"month" integer DEFAULT 0 NOT NULL,
+	"day" integer DEFAULT 0 NOT NULL,
+	"group_id" integer DEFAULT 0 NOT NULL,
+	"user_id" integer DEFAULT 0 NOT NULL,
+	"checkouts" integer DEFAULT 0 NOT NULL,
+	"commits" integer DEFAULT 0 NOT NULL,
+	"adds" integer DEFAULT 0 NOT NULL
+);
+




More information about the evolvis-commits mailing list