Skip to content

Commit

Permalink
Typos fixed, making golint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Liebsch committed Apr 27, 2017
1 parent 6558137 commit 71efc2b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vsphere-influxdb.go
Expand Up @@ -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
Expand Down Expand Up @@ -584,7 +584,7 @@ func max(n ...int64) int64 {
}

func sum(n ...int64) int64 {
var total int64 = 0
var total int64
for _, i := range n {
if i > 0 {
total += i
Expand All @@ -594,12 +594,12 @@ func sum(n ...int64) int64 {
}

func average(n ...int64) int64 {
var total int64 = 0
var count int64 = 0
var total int64
var count int64
for _, i := range n {
if i >= 0 {
count += 1
total += i
count++
total++
}
}
favg := float64(total) / float64(count)
Expand Down

0 comments on commit 71efc2b

Please sign in to comment.