Skip to content

Commit

Permalink
fix invalid comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
spacefreak86 committed Dec 19, 2024
1 parent aeeb4bb commit 2fdbdb7
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 2fdbdb7

Please sign in to comment.