From: Manuel Luis SanmartĂ­n Rozada Date: Wed, 18 Jun 2014 22:35:02 +0000 (+0200) Subject: Fix the conversion of time option in PUTNOTIF X-Git-Tag: collectd-5.5.0~280^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5e7fbbcce89a63aeac198063fa1c8922b0b1f64c;p=collectd.git Fix the conversion of time option in PUTNOTIF from timestamp to cdtime_t --- diff --git a/src/utils_cmd_putnotif.c b/src/utils_cmd_putnotif.c index 5a9faff2..3496ca93 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 */