Skip to content

Commit

Permalink
fix invalid comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
spacefreak86 authored and Civil committed Jan 15, 2025
1 parent 9d15e36 commit b4d86c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expr/consolidations/consolidations.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func SummarizeValues(f string, values []float64, XFilesFactor float32) float64 {
total++
}
}
if total == 0 {
if total > 0 {
rv /= float64(total)
}
case "max":
Expand Down

0 comments on commit b4d86c5

Please sign in to comment.