Skip to content
Permalink
Browse files
[FIXED JENKINS-28115] Division by zero in Executor.getProgress()
```
WARNING: Caught exception evaluating: executor.progress in /ajaxExecutors. Reason: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
...
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ArithmeticException: / by zero
	at hudson.model.Executor.getProgress(Executor.java:649)
	... 154 more
```
(cherry picked from commit e685b60)
  • Loading branch information
stephenc authored and olivergondza committed May 8, 2015
1 parent 3c83870 commit e7efb4430308acad09ceae9ee3f9433a22692ce4
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 e7efb44

Please sign in to comment.