From: Kern Sibbald Date: Wed, 19 Aug 2009 10:54:23 +0000 (+0200) Subject: Ensure that timestamp put in SQL log X-Git-Tag: Release-5.0.0~332^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf90b42695187be3f885b82e8246d2a240a7af1c;p=bacula%2Fbacula Ensure that timestamp put in SQL log --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index b8bbff30e1..7acf7447a3 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -624,6 +624,7 @@ void dispatch_message(JCR *jcr, int type, utime_t mtime, char *msg) if (mtime == 1) { *dt = 0; dtlen = 0; + mtime = time(NULL); /* get time for SQL log */ } else { bstrftime_ny(dt, sizeof(dt), mtime); dtlen = strlen(dt);