[Collab-qa-commits] r1618 - in udd: scripts web

Lucas Nussbaum lucas at alioth.debian.org
Tue Nov 3 14:40:30 UTC 2009


Author: lucas
Date: 2009-11-03 14:40:29 +0000 (Tue, 03 Nov 2009)
New Revision: 1618

Modified:
   udd/scripts/check_timestamps
   udd/web/index.html
Log:
fix check_timestamps ; drop timing.txt

Modified: udd/scripts/check_timestamps
===================================================================
--- udd/scripts/check_timestamps	2009-11-03 07:06:33 UTC (rev 1617)
+++ udd/scripts/check_timestamps	2009-11-03 14:40:29 UTC (rev 1618)
@@ -1,3 +1,5 @@
-ls -l --time-style=full-iso /org/udd.debian.org/timestamps/*.insert-end |sort -n -k 6 | grep -v $(date --iso) | grep -v $(date --iso -d '1 day ago') | grep -v "^total"
+echo "select source, max(end_time) from timestamps
+where command = 'run' and source not in (
+select source from timestamps where command = 'run' and end_time > (current_timestamp - interval '36 hours')) group by source;" | psql -q -t udd | grep -v "^$"
 ls -l --time-style=full-iso /org/bugs.debian.org/www/project/trace/ |sort -n -k 6 | grep -v $(date --iso) | grep -v $(date --iso -d '1 day ago') | grep -v "^total"
 

Modified: udd/web/index.html
===================================================================
--- udd/web/index.html	2009-11-03 07:06:33 UTC (rev 1617)
+++ udd/web/index.html	2009-11-03 14:40:29 UTC (rev 1618)
@@ -31,8 +31,8 @@
     <h2>Timing information</h2>
 
     <p>If you want to know when UDD is being updated, you can check the <a
-	    href="crontabs.txt">crontab file</a>, or <a href="timing.txt">the
-	    timestamps written during updates</a>.</p>
+	    href="crontabs.txt">crontab file</a>. The <i>timestamps</i> table can
+            tell you when a data source was last updated.</p>
 
       <h2>Database dump</h2>
 <p>A full dump of the database, generated every two days, is <a href="udd.sql.gz">also available</a>. Be careful, it's quite big (400 MB gzipped, and growing).</p>




More information about the Collab-qa-commits mailing list