Skip to content

Commit

Permalink
[JENKINS-22631] The wrong (newer) build was sometimes being marked fo…
Browse files Browse the repository at this point in the history
…r fixing, depending on arbitrary directory listing order.
  • Loading branch information
jglick committed Apr 15, 2014
1 parent 6fd76ea commit 1bf993c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/jenkins/diagnostics/ooom/Problem.java
Expand Up @@ -256,7 +256,7 @@ protected SortedMap<Integer,BuildPtr> scan() {
BuildPtr o = builds.put(n, b);
if (o != null) {
LOGGER.log(WARNING, "Multiple builds have the same number: {0} vs. {1}", new Object[] {o, b});
offenders.add(o);
offenders.add(b.compareTo(o) > 0 ? o : b);
}
}
} catch (XPathExpressionException e) {
Expand Down

0 comments on commit 1bf993c

Please sign in to comment.