Code

Revert "Plugin exec: change notification time to integer."
authorFlorian Forster <octo@collectd.org>
Thu, 26 Feb 2015 08:04:37 +0000 (09:04 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 26 Feb 2015 08:04:37 +0000 (09:04 +0100)
This was working as intended.

This reverts commit 07e4683f7f985668641d79137b64d148bc18ba8a.

src/exec.c

index b9a7365effe5ab8ef8edd0ec9aba7d3645bb1c47..cfd82a31b444adc1ce3ef1553a9d2ccddfd81b05 100644 (file)
@@ -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)