projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d118cc
)
fix for #477: Notification time gone wrong
author
Adrian Miron
<adrian.miron.v2@gmail.com>
Sat, 8 Mar 2014 16:56:11 +0000
(18:56 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Mon, 31 Mar 2014 20:59:03 +0000
(22:59 +0200)
Sub-second time handling was added in collectd 5.0.0. This adds support
for this to the target_notification plugin, which got missed out at the
time.
src/utils_cmd_putnotif.c
patch
|
blob
|
history
diff --git
a/src/utils_cmd_putnotif.c
b/src/utils_cmd_putnotif.c
index
5a9faff
..
7c96508
100644
(file)
--- a/
src/utils_cmd_putnotif.c
+++ b/
src/utils_cmd_putnotif.c
@@
-55,7
+55,7
@@
static int set_option_time (notification_t *n, const char *value)
if (tmp <= 0)
return (-1);
- n->time =
tmp
;
+ n->time =
TIME_T_TO_CDTIME_T (tmp)
;
return (0);
} /* int set_option_time */