[lxc-devel] [lxcfs/master] fix Active/Inactive /proc/meminfo

Fabian-Gruenbichler on Github lxc-bot at linuxcontainers.org
Wed Oct 19 07:36:25 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 899 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161019/51df8f61/attachment.bin>
-------------- next part --------------
From 2f306ad3b96558dbcbb736e59612f5a68ccc500d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler at proxmox.com>
Date: Wed, 19 Oct 2016 09:16:36 +0200
Subject: [PATCH] fix Active/Inactive /proc/meminfo
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 bindings.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bindings.c b/bindings.c
index 228dad7..9fbabb6 100644
--- a/bindings.c
+++ b/bindings.c
@@ -3192,11 +3192,11 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset,
 		} else if (startswith(line, "SwapCached:")) {
 			snprintf(lbuf, 100, "SwapCached:     %8lu kB\n", 0UL);
 			printme = lbuf;
-		} else if (startswith(line, "Active")) {
+		} else if (startswith(line, "Active:")) {
 			snprintf(lbuf, 100, "Active:         %8lu kB\n",
 					active_anon + active_file);
 			printme = lbuf;
-		} else if (startswith(line, "Inactive")) {
+		} else if (startswith(line, "Inactive:")) {
 			snprintf(lbuf, 100, "Inactive:       %8lu kB\n",
 					inactive_anon + inactive_file);
 			printme = lbuf;


More information about the lxc-devel mailing list