Merge "exec plugin: Fixed incorrect typecast of 64-bit timestamp to unsigned int...
authorFlorian Forster <octo@collectd.org>
Sat, 27 Aug 2011 19:48:12 +0000 (21:48 +0200)
committerGerrit Code Review <gerrit2@huhu.verplant.org>
Sat, 27 Aug 2011 19:48:12 +0000 (21:48 +0200)
src/exec.c

index 0d33b29..4f6f9df 100644 (file)
@@ -729,8 +729,8 @@ static void *exec_notification_one (void *arg) /* {{{ */
 
   fprintf (fh,
       "Severity: %s\n"
-      "Time: %u\n",
-      severity, (unsigned int) n->time);
+      "Time: %.3f\n",
+      severity, CDTIME_T_TO_DOUBLE (n->time));
 
   /* Print the optional fields */
   if (strlen (n->host) > 0)