X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=cb6844b86ce928696f8111b316fd61cf1dfd4704;hb=103f05e098865196fc5f28df51e99b64fd6b5202;hp=cfd82a31b444adc1ce3ef1553a9d2ccddfd81b05;hpb=d437681a04278fa6292338b4959231f825652785;p=collectd.git diff --git a/src/exec.c b/src/exec.c index cfd82a31..cb6844b8 100644 --- a/src/exec.c +++ b/src/exec.c @@ -18,7 +18,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Authors: - * Florian octo Forster + * Florian octo Forster * Sebastian Harl * Peter Holik **/ @@ -744,8 +744,8 @@ static void *exec_notification_one (void *arg) /* {{{ */ fprintf (fh, "Severity: %s\n" - "Time: %.3f\n", - severity, CDTIME_T_TO_DOUBLE (n->time)); + "Time: %u\n", + severity, (unsigned int)CDTIME_T_TO_TIME_T(n->time)); /* Print the optional fields */ if (strlen (n->host) > 0)