projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0471475
)
exec plugin: Fixed incorrect typecast of 64-bit timestamp to unsigned int (collectd...
author
Alexander Kovalenko
<alexanderk23@gmail.com>
Sat, 27 Aug 2011 18:20:22 +0000
(22:20 +0400)
committer
Florian Forster
<octo@collectd.org>
Sat, 27 Aug 2011 19:44:29 +0000
(21:44 +0200)
Change-Id: Ia99285c8158828760e74083ed6ea54112fa8a156
Signed-off-by: Alexander Kovalenko <alexanderk23@gmail.com>
Signed-off-by: Florian Forster <octo@collectd.org>
src/exec.c
patch
|
blob
|
history
diff --git
a/src/exec.c
b/src/exec.c
index
0d33b29
..
4f6f9df
100644
(file)
--- 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)