From 5e9a323fb7778f66641d01b283797efd79d3daa4 Mon Sep 17 00:00:00 2001 From: gotjosh Date: Wed, 18 Jan 2023 19:52:03 +0000 Subject: [PATCH] Use `l.now()` everywhere Signed-off-by: gotjosh --- nflog/nflog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nflog/nflog.go b/nflog/nflog.go index e54bd547c2..713a0ad6ff 100644 --- a/nflog/nflog.go +++ b/nflog/nflog.go @@ -320,7 +320,7 @@ func (l *Log) Maintenance(interval time.Duration, snapf string, stopc <-chan str start := l.now().UTC() level.Debug(l.logger).Log("msg", "Running maintenance") size, err := do() - level.Debug(l.logger).Log("msg", "Maintenance done", "duration", l.clock.Now().Sub(start), "size", size) + level.Debug(l.logger).Log("msg", "Maintenance done", "duration", l.now().Sub(start), "size", size) l.metrics.snapshotSize.Set(float64(size)) return err }