[FIXED HUDSON-2633] Set minimum of 10 minutes before showing "appears to be stuck"

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14661 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2009-01-20 16:52:54 +00:00
1 parent 07e40ca911
commit 5739219b7e
1 file changed
+1 -1
+1 -1
View File
@@ -942,7 +942,7 @@ public class Queue extends ResourceController implements Saveable {
long elapsed = System.currentTimeMillis()-buildableStartMilliseconds;
if(d>=0) {
// if we were running elsewhere, we would have done this build ten times.
return elapsed > d*10;
return elapsed > Math.max(d,60000L)*10;
} else {
// more than a day in the queue
return TimeUnit2.MILLISECONDS.toHours(elapsed)>24;