projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git]
/
src
/
exec.c
diff --git
a/src/exec.c
b/src/exec.c
index
b9a7365
..
3f68e8b
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-18,11
+18,12
@@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
- * Florian octo Forster <octo at
verplant
.org>
+ * Florian octo Forster <octo at
collectd
.org>
* Sebastian Harl <sh at tokkee.org>
* Peter Holik <peter at holik.at>
**/
* Sebastian Harl <sh at tokkee.org>
* Peter Holik <peter at holik.at>
**/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* For setgroups */
#include "collectd.h"
#define _BSD_SOURCE /* For setgroups */
#include "collectd.h"
@@
-744,8
+745,8
@@
static void *exec_notification_one (void *arg) /* {{{ */
fprintf (fh,
"Severity: %s\n"
fprintf (fh,
"Severity: %s\n"
- "Time: %
u
\n",
- severity,
(unsigned int)CDTIME_T_TO_TIME_T
(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)