From 99ee393e8e9ca3604348d591f3de5801ca8f98f7 Mon Sep 17 00:00:00 2001 From: Alexander Kovalenko Date: Sat, 27 Aug 2011 22:20:22 +0400 Subject: [PATCH] exec plugin: Fixed incorrect typecast of 64-bit timestamp to unsigned int (collectd-5.0) Change-Id: Ia99285c8158828760e74083ed6ea54112fa8a156 Signed-off-by: Alexander Kovalenko Signed-off-by: Florian Forster --- src/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2