From 43fcfd6a48b506b03114dd9637caf8fc211b47db Mon Sep 17 00:00:00 2001 From: Adrian Miron Date: Sat, 8 Mar 2014 18:56:11 +0200 Subject: [PATCH 1/1] fix for #477: Notification time gone wrong 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_cmd_putnotif.c b/src/utils_cmd_putnotif.c index 5a9faff2..7c965084 100644 --- 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 */ -- 2.11.0