Skip to content

Commit

Permalink
Update metric/system/cgroup/util.go
Browse files Browse the repository at this point in the history
Co-authored-by: Shaunak Kashyap <[email protected]>
  • Loading branch information
florianl and ycombinator authored Nov 3, 2023
1 parent 80dde66 commit de8db9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metric/system/cgroup/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit de8db9b

Please sign in to comment.