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
```
  • Loading branch information
stephenc committed Apr 27, 2015
1 parent cd8dbed commit e685b604eeeed9c48bee2f728c3ecec3303e5c56
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 e685b60

Please sign in to comment.