projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
ca7b906
)
Auto-Merge pull request #2916 from rpv-tomsk/collectd-collectd-5.8
author
collectd bot
<32910397+collectd-bot@users.noreply.github.com>
Thu, 30 Aug 2018 06:48:03 +0000
(08:48 +0200)
committer
GitHub
<noreply@github.com>
Thu, 30 Aug 2018 06:48:03 +0000
(08:48 +0200)
Automatically merged due to "Automerge" label
src/nfs.c
patch
|
blob
|
history
diff --git
a/src/nfs.c
b/src/nfs.c
index
b556307
..
0fc9f3a
100644
(file)
--- a/
src/nfs.c
+++ b/
src/nfs.c
@@
-520,7
+520,8
@@
static int nfs_submit_nfs4_client(const char *instance, char **fields,
static void nfs_read_linux(FILE *fh, const char *inst) {
char buffer[1024];
- char *fields[64];
+ // The stats line is prefixed with type and number of fields, thus plus 2
+ char *fields[MAX(NFS4_SERVER_MAX_PROC, NFS4_CLIENT_MAX_PROC) + 2];
int fields_num = 0;
if (fh == NULL)