nfs: Fix number of fields for NFSv4
authorJan-Philipp Litza <janphilipp@litza.de>
Wed, 29 Aug 2018 20:46:49 +0000 (22:46 +0200)
committerPavel Rochnyack <pavel2000@ngs.ru>
Thu, 30 Aug 2018 05:35:25 +0000 (12:35 +0700)
commitf177dc1f5a4722c7eee4fc8bb3c3d4f2aa0d39d6
treec39848f427b1840aa73a182feba52be9f6972486
parentca7b9060efa0039ddab1205883aa35ea6197e859
nfs: Fix number of fields for NFSv4

The previous buffer of 64 fields was too short for the current number of
72+2 fields in NFS 4.2, causing the message

  nfs plugin: Unexpected number of fields for NFSv4 server statistics: 62.

This change, originally proposed in [1], fixes that issue in a
forward-compatible manner by reusing the already known number of fields
from the static arrays.

[1]: https://github.com/collectd/collectd/issues/2076#issuecomment-350466628
src/nfs.c