]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
fix Active/Inactive /proc/meminfo
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 19 Oct 2016 07:16:36 +0000 (09:16 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 19 Oct 2016 07:31:47 +0000 (09:31 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
bindings.c

index 228dad792c079e2500da647797026db547b12f8f..9fbabb6a947403f3b594df2a7e63b99d7273379b 100644 (file)
@@ -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;