From: Florian Forster Date: Sat, 27 Aug 2011 19:48:12 +0000 (+0200) Subject: Merge "exec plugin: Fixed incorrect typecast of 64-bit timestamp to unsigned int... X-Git-Tag: collectd-5.0.1~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a709b786e18b745526873780c0eabfed10a31d2a;hp=b5f684989b328f7dac9fd5bc7a98455c25ddb3bb;p=collectd.git Merge "exec plugin: Fixed incorrect typecast of 64-bit timestamp to unsigned int (collectd-5.0)" into collectd-5.0 --- diff --git a/src/exec.c b/src/exec.c index 0d33b290..4f6f9dfb 100644 --- a/src/exec.c +++ b/src/exec.c @@ -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)