From 6f521e7354231aa7cba61ea4066f2749aee6932a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 23 Feb 2009 15:38:29 +0100 Subject: [PATCH] logfile plugin: Interpret `(notification_t *)->time == 0' as `now'. --- src/logfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logfile.c b/src/logfile.c index 8e98c047..03af7a3f 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -187,7 +187,8 @@ static int logfile_notification (const notification_t *n, buf[sizeof (buf) - 1] = '\0'; - logfile_print (buf, n->time); + logfile_print (buf, + (n->time > 0) ? n->time : time (NULL)); return (0); } /* int logfile_notification */ -- 2.11.0