From: Florian Forster Date: Thu, 26 Feb 2015 08:04:37 +0000 (+0100) Subject: Revert "Plugin exec: change notification time to integer." X-Git-Tag: collectd-5.3.2~4 X-Git-Url: https://git.tokkee.org/?p=collectd.git;a=commitdiff_plain;h=3e1563f6d79416f095c6246518eebf4fecc4fe07 Revert "Plugin exec: change notification time to integer." This was working as intended. This reverts commit 07e4683f7f985668641d79137b64d148bc18ba8a. --- diff --git a/src/exec.c b/src/exec.c index b9a7365e..cfd82a31 100644 --- a/src/exec.c +++ b/src/exec.c @@ -744,8 +744,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)