Skip to content

Commit b4d86c5

Browse files
spacefreak86Civil
authored andcommitted
fix invalid comparison
1 parent 9d15e36 commit b4d86c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

expr/consolidations/consolidations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func SummarizeValues(f string, values []float64, XFilesFactor float32) float64 {
163163
total++
164164
}
165165
}
166-
if total == 0 {
166+
if total > 0 {
167167
rv /= float64(total)
168168
}
169169
case "max":

0 commit comments

Comments
 (0)