mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
vendor of containers/(common, storage, image)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
2
vendor/github.com/containers/common/pkg/cgroups/cgroups_linux.go
generated
vendored
2
vendor/github.com/containers/common/pkg/cgroups/cgroups_linux.go
generated
vendored
@@ -269,7 +269,7 @@ func readFileByKeyAsUint64(path, key string) (uint64, error) {
|
||||
for _, line := range strings.Split(string(content), "\n") {
|
||||
fields := strings.SplitN(line, " ", 2)
|
||||
if fields[0] == key {
|
||||
v := cleanString(string(fields[1]))
|
||||
v := cleanString(fields[1])
|
||||
if v == "max" {
|
||||
return math.MaxUint64, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user