1
0
mirror of https://github.com/Oxalide/vsphere-influxdb-go.git synced 2023-10-10 13:36:51 +02:00

Typos fixed, making golint happy

This commit is contained in:
Mike Liebsch 2017-04-27 22:19:53 +02:00
parent 6558137160
commit 71efc2b2ac

View File

@ -411,7 +411,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
} }
} }
} }
queries = append(queries, types.PerfQuerySpec{Entity: mor, StartTime: &startTime, EndTime: &endTime, MetricId: metricIds, intervalID: intervalID}) queries = append(queries, types.PerfQuerySpec{Entity: mor, StartTime: &startTime, EndTime: &endTime, MetricId: metricIds, IntervalId: intervalID})
} }
// Query the performances // Query the performances
@ -584,7 +584,7 @@ func max(n ...int64) int64 {
} }
func sum(n ...int64) int64 { func sum(n ...int64) int64 {
var total int64 = 0 var total int64
for _, i := range n { for _, i := range n {
if i > 0 { if i > 0 {
total += i total += i
@ -594,12 +594,12 @@ func sum(n ...int64) int64 {
} }
func average(n ...int64) int64 { func average(n ...int64) int64 {
var total int64 = 0 var total int64
var count int64 = 0 var count int64
for _, i := range n { for _, i := range n {
if i >= 0 { if i >= 0 {
count += 1 count++
total += i total++
} }
} }
favg := float64(total) / float64(count) favg := float64(total) / float64(count)