diff --git a/src/processes.c b/src/processes.c
index 5b244a6cda6da977f82ab5e6d04caa7e0601a2ce..553b1955c2f868904f728f315203bdbb848327c4 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
# ifndef CONFIG_HZ
# define CONFIG_HZ 100
# endif
-# ifndef ARG_MAX
-# if defined(HAVE_SYSCONF) && HAVE_SYSCONF && defined(_SC_ARG_MAX)
-# define ARG_MAX sysconf(_SC_ARG_MAX)
-# else
-# define ARG_MAX 4096
-# endif
-# endif
/* #endif KERNEL_LINUX */
#elif HAVE_LIBKVM_GETPROCS
# include <regex.h>
#endif
+#ifndef ARG_MAX
+# define ARG_MAX 4096
+#endif
+
#define BUFSIZE 256
static const char *config_keys[] =
vl.values = values;
vl.values_len = 1;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "processes", sizeof (vl.plugin));
sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));
vl.values = values;
vl.values_len = 2;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "processes", sizeof (vl.plugin));
sstrncpy (vl.plugin_instance, ps->name, sizeof (vl.plugin_instance));