]> git.proxmox.com Git - lxcfs.git/blame - debian/patches/fix-Active-Inactive-proc-meminfo.patch
bump version to 2.0.4-pve2
[lxcfs.git] / debian / patches / fix-Active-Inactive-proc-meminfo.patch
CommitLineData
f4baf6f6
FG
1From 3f4847aacd7cb56d7859f1562c81c06acf9d41d5 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3Date: Wed, 19 Oct 2016 09:16:36 +0200
4Subject: [PATCH] fix Active/Inactive /proc/meminfo
5
6---
7 bindings.c | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10diff --git a/bindings.c b/bindings.c
11index 2f78ab5..0d46fb8 100644
12--- a/bindings.c
13+++ b/bindings.c
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);
17 printme = lbuf;
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);
22 printme = lbuf;
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);
27 printme = lbuf;
28--
292.1.4
30