diff --git a/metric/system/cgroup/util.go b/metric/system/cgroup/util.go index 8a9329bdb9..32ac2b8366 100644 --- a/metric/system/cgroup/util.go +++ b/metric/system/cgroup/util.go @@ -283,7 +283,7 @@ the container as /sys/fs/cgroup/unified and start the system module with the hos if ok { // If the cached entry for controllerPath is not older than 5 minutes, // return the cached entry. - if time.Since(cacheEntry.added) < time.Duration(5*time.Minute) { + if time.Since(cacheEntry.added) < 5*time.Minute { cPaths.V2 = cacheEntry.pathList.V2 continue }