Merge pull request #9202 from nujz/master

fix: cgroupV1: memory.memsw.usage_in_bytes: no such file or directory
This commit is contained in:
Łukasz Magiera 2022-08-23 14:38:55 -04:00 committed by GitHub
commit 4a6ea4c492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ func cgroupV1Mem() (memoryMax, memoryUsed, swapMax, swapUsed uint64, err error)
if err != nil {
return 0, 0, 0, 0, err
}
stats, err := c.Stat()
stats, err := c.Stat(cgroups.IgnoreNotExist)
if err != nil {
return 0, 0, 0, 0, err
}