From: Adrian Miron Date: Sat, 8 Mar 2014 16:56:11 +0000 (+0200) Subject: fix for #477: Notification time gone wrong X-Git-Tag: collectd-5.3.2~71 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=43fcfd6a48b506b03114dd9637caf8fc211b47db;p=collectd.git 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. --- 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 */