servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lh...@apache.org
Subject svn commit: r704791 - /servicemix/scripts/builds/webapps/builds/status.jsp
Date Wed, 15 Oct 2008 06:40:57 GMT
Author: lhein
Date: Tue Oct 14 23:40:56 2008
New Revision: 704791

URL: http://svn.apache.org/viewvc?rev=704791&view=rev
Log:
test for new re-read logic

Modified:
    servicemix/scripts/builds/webapps/builds/status.jsp

Modified: servicemix/scripts/builds/webapps/builds/status.jsp
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/webapps/builds/status.jsp?rev=704791&r1=704790&r2=704791&view=diff
==============================================================================
--- servicemix/scripts/builds/webapps/builds/status.jsp (original)
+++ servicemix/scripts/builds/webapps/builds/status.jsp Tue Oct 14 23:40:56 2008
@@ -72,7 +72,8 @@
   String key_projectMap = "projects";
   String key_timestamps = "timestamps";
   String key_lastresults= "lastResults";
-
+  
+  long RE_READ_TIMER = 1 * 60 * 1000; // 30 minutes re-read timer
   long ACTIVITY_TIME_OUT = 5 * 60 * 1000; // 5 minutes because of longer scp uploads
   
   TreeMap prjMap = null;
@@ -140,6 +141,9 @@
       System.out.println("Processing: " + file);
       if (f.lastModified() + ACTIVITY_TIME_OUT >= System.currentTimeMillis()) {
       	  return "<td class='building' width='60%'><a href='logs/" + uri + "' class='building'>BUILDING</a></td>";
+      } else if (System.currentTimeMillis() - f.lastModified > RE_READ_TIMER) {
+          lastResultMap.remove(uri);
+          tsMap.remove(uri);
       }
 
       // speed up processing of page - if no change was made to the



Mime
View raw message