diff --git a/src/modules/collector/cache/cache.go b/src/modules/collector/cache/cache.go index b5bc32c6..86e2046d 100644 --- a/src/modules/collector/cache/cache.go +++ b/src/modules/collector/cache/cache.go @@ -56,7 +56,7 @@ func (h *History) clean() { defer h.Unlock() now := time.Now().Unix() for key, item := range h.Data { - if now-item.Timestamp > 60 { + if now-item.Timestamp > 2*item.Step { delete(h.Data, key) } }