Fixed formatting.

This commit is contained in:
Bart Vercoulen 2019-02-15 10:41:53 +01:00
parent f51b1f882d
commit d73bd20065
No known key found for this signature in database
GPG Key ID: E6D9CA10D6B6AC2B

View File

@ -238,11 +238,11 @@ func CollectBinaryShowqFromReader(file io.Reader, ch chan<- prometheus.Metric) e
sizeHistogram.WithLabelValues(queue).Observe(size)
} else if key == "time" {
// Message time as a UNIX timestamp.
time, err := strconv.ParseFloat(value, 64)
utime, err := strconv.ParseFloat(value, 64)
if err != nil {
return err
}
ageHistogram.WithLabelValues(queue).Observe(now - time)
ageHistogram.WithLabelValues(queue).Observe(now - utime)
}
}