Don't forget to assign the resulting date.

This commit is contained in:
Ed Schouten 2017-02-17 15:47:45 +01:00
parent 77eb147a0c
commit ccf97c55a5

View File

@ -85,7 +85,7 @@ func CollectShowqFromReader(file io.Reader, ch chan<- prometheus.Metric) error {
} }
date = date.AddDate(now.Year(), 0, 0) date = date.AddDate(now.Year(), 0, 0)
if date.After(now) { if date.After(now) {
date.AddDate(-1, 0, 0) date = date.AddDate(-1, 0, 0)
} }
sizeHistogram.Observe(size) sizeHistogram.Observe(size)