X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemory.c;h=fb2f3d38a4045fd8790160a1155ed04cda33ab23;hb=0a63e4493d92f7d739a1849bc65d4e971b047004;hp=0f5e1a00322da85bcb4666049f87e2eb11f4afd5;hpb=2421812ea47269c50920414a6e3c32448800120f;p=collectd.git diff --git a/src/memory.c b/src/memory.c index 0f5e1a00..fb2f3d38 100644 --- a/src/memory.c +++ b/src/memory.c @@ -30,6 +30,9 @@ #ifdef HAVE_SYS_SYSCTL_H # include #endif +#ifdef HAVE_SYS_VMMETER_H +# include +#endif #ifdef HAVE_MACH_KERN_RETURN_H # include @@ -157,9 +160,9 @@ static int memory_init (void) #define MEMORY_SUBMIT(...) do { \ if (values_absolute) \ - plugin_dispatch_multivalue (vl, 0, __VA_ARGS__, NULL); \ + plugin_dispatch_multivalue (vl, 0, DS_TYPE_GAUGE, __VA_ARGS__, NULL); \ if (values_percentage) \ - plugin_dispatch_multivalue (vl, 1, __VA_ARGS__, NULL); \ + plugin_dispatch_multivalue (vl, 1, DS_TYPE_GAUGE, __VA_ARGS__, NULL); \ } while (0) static int memory_read_internal (value_list_t *vl)