Fix AdminInfo#getExecAverage divide by zero
AdminInfo#getExecAverage throws divide by zero exception when blockExecTime#size is 0 [Delivers #88031650]
This commit is contained in:
parent
ad2eefb789
commit
32ff7a7b68
|
@ -43,6 +43,8 @@ public class AdminInfo {
|
|||
|
||||
public Long getExecAvg(){
|
||||
|
||||
if (blockExecTime.size() == 0) return 0L;
|
||||
|
||||
long sum = 0;
|
||||
for (int i = 0; i < blockExecTime.size(); ++i){
|
||||
sum += blockExecTime.get(i);
|
||||
|
|
Loading…
Reference in New Issue