You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by lh...@apache.org on 2008/10/15 08:40:57 UTC
svn commit: r704791 - /servicemix/scripts/builds/webapps/builds/status.jsp
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