mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-24 10:49:43 +00:00
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…
x
Reference in New Issue
Block a user