We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be26e07 + c0383b2 commit 005ee70Copy full SHA for 005ee70
collectors/traffic_collector.go
@@ -137,7 +137,7 @@ func (c *TrafficCollector) Collect(ch chan<- prometheus.Metric) {
137
times := strings.Split(val, ":")
138
tmp, _ := strconv.ParseFloat(times[0], 64)
139
metric = tmp * float64(3600)
140
- tmp, _ = strconv.ParseFloat(times[0], 64)
+ tmp, _ = strconv.ParseFloat(times[1], 64)
141
metric += tmp * float64(60)
142
} else {
143
metric, _ = strconv.ParseFloat(val, 64)
0 commit comments