Fixed formatting.
This commit is contained in:
parent
f51b1f882d
commit
d73bd20065
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user