summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorJaromir Capik <jcapik@redhat.com>2014-07-14 19:44:14 +0200
committerJaromir Capik <jcapik@redhat.com>2014-07-14 19:44:14 +0200
commitd75d8addc6a30c73e528cf2ddfcd08c813b27105 (patch)
tree3b517fcb7da187ef5381c1c3d4748a5b159ff439 /proc
parentb2ad21990a1dd1bc5b8a58f0ac851d8ca304885b (diff)
downloadprocps-ng-d75d8addc6a30c73e528cf2ddfcd08c813b27105.tar.gz
library: additional comments to the buffer size increase
Diffstat (limited to 'proc')
-rw-r--r--proc/sysinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc/sysinfo.c b/proc/sysinfo.c
index 92814df..fbbe0b5 100644
--- a/proc/sysinfo.c
+++ b/proc/sysinfo.c
@@ -57,7 +57,8 @@ static int vminfo_fd = -1;
// As of 2.6.24 /proc/meminfo seems to need 888 on 64-bit,
// and would need 1258 if the obsolete fields were there.
-// As of 3.13 /proc/vmstat needs 2623 on 64-bit.
+// As of 3.13 /proc/vmstat needs 2623,
+// and /proc/stat needs 3076.
static char buf[8192];
/* This macro opens filename only if necessary and seeks to 0 so