Skip to content

Commit

Permalink
Use l.now() everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: gotjosh <josue.abreu@gmail.com>
  • Loading branch information
gotjosh committed Jan 18, 2023
1 parent d17244d commit 5e9a323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nflog/nflog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5e9a323

Please sign in to comment.