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:
parent
6558137160
commit
71efc2b2ac
@ -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
|
||||
@ -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
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user