X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=3f68e8bbcf1ab26d6f195d80c5ec0213c562a732;hb=e9ecee2a61356a293f086dd3d36d2381486b563e;hp=b9a7365effe5ab8ef8edd0ec9aba7d3645bb1c47;hpb=07e4683f7f985668641d79137b64d148bc18ba8a;p=collectd.git diff --git a/src/exec.c b/src/exec.c index b9a7365e..3f68e8bb 100644 --- a/src/exec.c +++ b/src/exec.c @@ -18,11 +18,12 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Authors: - * Florian octo Forster + * Florian octo Forster * Sebastian Harl * Peter Holik **/ +#define _DEFAULT_SOURCE #define _BSD_SOURCE /* For setgroups */ #include "collectd.h" @@ -744,8 +745,8 @@ static void *exec_notification_one (void *arg) /* {{{ */ 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)