提交 fdf14911 编写于 作者: K kohsuke

fixed #163.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1150 71c3de6d-444a-0410-be80-ed276b4c234a
上级 462e533a
......@@ -64,6 +64,8 @@ public class RunList extends ArrayList<Run> {
/**
* Reduce the size of the list by only leaving relatively new ones.
* This also removed on-going builds, as RSS cannot be used to publish information
* if it changes.
*/
public RunList newBuilds() {
GregorianCalendar threshold = new GregorianCalendar();
......@@ -73,6 +75,11 @@ public class RunList extends ArrayList<Run> {
for (Iterator<Run> itr = iterator(); itr.hasNext();) {
Run r = itr.next();
if(r.isBuilding()) {
// can't publish on-going builds
itr.remove();
continue;
}
// at least put 10 items
if(count<10) {
count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册