提交 e685b604 编写于 作者: S Stephen Connolly

[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
```
上级 cd8dbeda
...@@ -642,7 +642,7 @@ public class Executor extends Thread implements ModelObject { ...@@ -642,7 +642,7 @@ public class Executor extends Thread implements ModelObject {
} finally { } finally {
lock.readLock().unlock(); lock.readLock().unlock();
} }
if (d < 0) { if (d <= 0) {
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册