diff --git a/src/exec.c b/src/exec.c
index cb6844b86ce928696f8111b316fd61cf1dfd4704..8d737cea0354e2490bd801c350fdac63a7dbf650 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
* Peter Holik <peter at holik.at>
**/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* For setgroups */
#include "collectd.h"
@@ -338,7 +339,7 @@ static void exec_child (program_list_t *pl, int uid, int gid, int egid) /* {{{ *
exit (-1);
}
- status = execvp (pl->exec, pl->argv);
+ execvp (pl->exec, pl->argv);
ERROR ("exec plugin: Failed to execute ``%s'': %s",
pl->exec, sstrerror (errno, errbuf, sizeof (errbuf)));
fprintf (fh,
"Severity: %s\n"
- "Time: %u\n",
- severity, (unsigned int)CDTIME_T_TO_TIME_T(n->time));
+ "Time: %.3f\n",
+ severity, CDTIME_T_TO_DOUBLE (n->time));
/* Print the optional fields */
if (strlen (n->host) > 0)