add startup time to the query struct
authorChristian Thaeter <ct@pipapo.org>
Mon, 17 Dec 2007 12:20:11 +0000 (13:20 +0100)
committerChristian Thaeter <ct@pipapo.org>
Mon, 17 Dec 2007 12:20:11 +0000 (13:20 +0100)
src/ctgit.h
src/query.c

index f5dfe78c4e07b27f3f31fda884af7496d251c924..1250e543815ba4fba4c3ffecfbe9a9ecc9840463 100644 (file)
@@ -40,6 +40,7 @@ struct ctgit_repo_info
 struct ctgit_query
 {
   Cgi request;
+  time_t now;
 
   /* confiuration parameters */
   //int cache_read;
index 376497c138c775c95f1597a4cf978ac3b31972bf..08eb118d8da2418d03b2226e1430ae9add326cc9 100644 (file)
@@ -28,6 +28,9 @@
 void
 ctgit_query_init (struct ctgit_query* q)
 {
+  q->request = NULL;
+  q->now = time (NULL);
+
   q->repo = NULL;
   q->action = cwa_strdup ("main");
   q->object = NULL;