Skip to content

Commit

Permalink
Skip empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
kubec committed May 31, 2021
1 parent bcb2627 commit 69818d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chia-log-analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ func renderLog(text string) {
}

func renderOverallHealth() {
if len(healthData) < 3 {
return
}
values := sortMap(healthData)
values = values[1 : len(values)-1] //remove the first and the last (may be incomplete)
sum := sumFloats(values)
Expand Down

0 comments on commit 69818d3

Please sign in to comment.