summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b84930)
raw | patch | inline | side by side (parent: 4b84930)
author | Cosmin Ioiart <cioiart+dev@gmail.com> | |
Mon, 19 Mar 2012 09:56:03 +0000 (10:56 +0100) | ||
committer | Cosmin Ioiart <cioiart+dev@gmail.com> | |
Mon, 19 Mar 2012 09:56:03 +0000 (10:56 +0100) |
The value returned by get_kstat_value is of type long long whereas values is a union. Fixed the code so that the value gets assigned to one of the union members, in this case counter.
src/nfs.c | patch | blob | history |
diff --git a/src/nfs.c b/src/nfs.c
index de642a2c43f44ebf40647b937b26404098ebf263..58f2e0d23b37316ae1e48be719aa37ac82fc692c 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
* Authors:
* Jason Pepas <cell at ices.utexas.edu>
* Florian octo Forster <octo at verplant.org>
+ * Cosmin Ioiart <cioiart at gmail.com>
**/
#include "collectd.h"
kstat_read(kc, ksp, NULL);
for (i = 0; i < proc_names_num; i++)
- values[i] = (derive_t) get_kstat_value (ksp, proc_names[i]);
+ values[i].counter = (derive_t) get_kstat_value (ksp, proc_names[i]);
nfs_procedures_submit (plugin_instance, proc_names, values,
proc_names_num);