Skip to content
Permalink
Browse files
Merge pull request #1678 from stephenc/jenkins-28115
[FIXED JENKINS-28115] Division by zero in Executor.getProgress()
  • Loading branch information
stephenc committed Apr 27, 2015
2 parents cd8dbed + e685b60 commit a574cd9574f7ce1386816c0cc10560a341861b3c
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/model/Executor.java
@@ -642,7 +642,7 @@ public int getProgress() {
} finally {
lock.readLock().unlock();
}
if (d < 0) {
if (d <= 0) {
return -1;
}

0 comments on commit a574cd9

Please sign in to comment.