X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=4f6f9dfb9871000a0e4e7084fb451204f9857c8a;hb=refs%2Fheads%2Frc%2Fmongodb;hp=8d5ae9c3894932c6b21abbc1dc8bb952b84da870;hpb=0eff156c7816507fa1865b76e948574dd320fae0;p=collectd.git diff --git a/src/exec.c b/src/exec.c index 8d5ae9c3..4f6f9dfb 100644 --- a/src/exec.c +++ b/src/exec.c @@ -283,10 +283,6 @@ static void set_environment (void) /* {{{ */ ssnprintf (buffer, sizeof (buffer), "COLLECTD_HOSTNAME=%s", hostname_g); putenv (buffer); #endif - -#ifdef HAVE_SETENV -#else -#endif } /* }}} void set_environment */ __attribute__((noreturn)) @@ -733,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)