diff --git a/chia-log-analyzer.go b/chia-log-analyzer.go index 30ee4a4..79043f4 100644 --- a/chia-log-analyzer.go +++ b/chia-log-analyzer.go @@ -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)