1
0
mirror of https://github.com/lxc/go-lxc.git synced 2026-02-05 15:47:17 +01:00

fix KernelMemoryLimit cgroup item

Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
This commit is contained in:
s3rj1k
2018-06-07 17:56:59 +03:00
parent d174d1fe66
commit 081b7565e2

View File

@@ -997,7 +997,7 @@ func (c *Container) KernelMemoryLimit() (ByteSize, error) {
return -1, err
}
return c.cgroupItemAsByteSize("memory.kmem.usage_in_bytes", ErrKMemLimit)
return c.cgroupItemAsByteSize("memory.kmem.limit_in_bytes", ErrKMemLimit)
}
// SetKernelMemoryLimit sets kernel memory limit of the container in bytes.