Skip to content

Commit

Permalink
Merge pull request #21 from adongy/patch-1
Browse files Browse the repository at this point in the history
Fix average returning 1
  • Loading branch information
sofixa committed May 24, 2017
2 parents 7e53ec6 + fe2f808 commit c5579d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsphere-influxdb.go
Expand Up @@ -684,7 +684,7 @@ func average(n ...int64) int64 {
for _, i := range n {
if i >= 0 {
count++
total++
total += i
}
}
favg := float64(total) / float64(count)
Expand Down

0 comments on commit c5579d6

Please sign in to comment.