projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reimport my changes
[collectd.git]
/
src
/
exec.c
diff --git
a/src/exec.c
b/src/exec.c
index
8d5ae9c
..
4f6f9df
100644
(file)
--- 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
ssnprintf (buffer, sizeof (buffer), "COLLECTD_HOSTNAME=%s", hostname_g);
putenv (buffer);
#endif
-
-#ifdef HAVE_SETENV
-#else
-#endif
} /* }}} void set_environment */
__attribute__((noreturn))
} /* }}} void set_environment */
__attribute__((noreturn))
@@
-733,8
+729,8
@@
static void *exec_notification_one (void *arg) /* {{{ */
fprintf (fh,
"Severity: %s\n"
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)
/* Print the optional fields */
if (strlen (n->host) > 0)