1 From 3f4847aacd7cb56d7859f1562c81c06acf9d41d5 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Wed, 19 Oct 2016 09:16:36 +0200
4 Subject: [PATCH] fix Active/Inactive /proc/meminfo
8 1 file changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/bindings.c b/bindings.c
11 index 2f78ab5..0d46fb8 100644
14 @@ -3197,11 +3197,11 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset,
15 } else if (startswith(line, "SwapCached:")) {
16 snprintf(lbuf, 100, "SwapCached: %8lu kB\n", 0UL);
18 - } else if (startswith(line, "Active")) {
19 + } else if (startswith(line, "Active:")) {
20 snprintf(lbuf, 100, "Active: %8lu kB\n",
21 active_anon + active_file);
23 - } else if (startswith(line, "Inactive")) {
24 + } else if (startswith(line, "Inactive:")) {
25 snprintf(lbuf, 100, "Inactive: %8lu kB\n",
26 inactive_anon + inactive_file);