The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/go-lxc/pull/104

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===

From ed92febb3d5e78fae79d12ed32ab8744f3d4f2ea Mon Sep 17 00:00:00 2001
From: s3rj1k <[email protected]>
Date: Thu, 7 Jun 2018 17:56:59 +0300
Subject: [PATCH] fix KernelMemoryLimit cgroup item

---
 container.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/container.go b/container.go
index 93f6203..dfa85a3 100644
--- a/container.go
+++ b/container.go
@@ -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.
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to