Skip to content

Commit

Permalink
Merge pull request #1678 from stephenc/jenkins-28115
Browse files Browse the repository at this point in the history
[FIXED JENKINS-28115] Division by zero in Executor.getProgress()
  • Loading branch information
stephenc committed Apr 27, 2015
2 parents cd8dbed + e685b60 commit a574cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Executor.java
Expand Up @@ -642,7 +642,7 @@ public int getProgress() {
} finally {
lock.readLock().unlock();
}
if (d < 0) {
if (d <= 0) {
return -1;
}

Expand Down

0 comments on commit a574cd9

Please sign in to comment.