summaryrefslogtreecommitdiffstats
path: root/cache/dynacache/dynacache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache/dynacache/dynacache.go')
-rw-r--r--cache/dynacache/dynacache.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache/dynacache/dynacache.go b/cache/dynacache/dynacache.go
index 85b360138..fed4d120e 100644
--- a/cache/dynacache/dynacache.go
+++ b/cache/dynacache/dynacache.go
@@ -295,6 +295,8 @@ func (c *Cache) start() func() {
select {
case <-ticker.C:
c.adjustCurrentMaxSize()
+ // Reset the ticker to avoid drift.
+ ticker.Reset(c.opts.CheckInterval)
case <-quit:
ticker.Stop()
return