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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user