提交 4a0d9d90 编写于 作者: K kohsuke

Information about how a task moves through various stages in the queue is very useful

for both smarter scheduling and better slave management. For that, we need to have
a real object to attach information to.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9462 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b02f945d
......@@ -293,7 +293,7 @@ public abstract class Computer extends AbstractModelObject {
*/
public final long getDemandStartMilliseconds() {
long firstDemand = Long.MAX_VALUE;
for (Queue.Item item : Hudson.getInstance().getQueue().getBuildableItems(this)) {
for (Queue.BuildableItem item : Hudson.getInstance().getQueue().getBuildableItems(this)) {
firstDemand = Math.min(item.buildableStartMilliseconds, firstDemand);
}
return firstDemand;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册