From bf90b42695187be3f885b82e8246d2a240a7af1c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 19 Aug 2009 12:54:23 +0200 Subject: [PATCH] Ensure that timestamp put in SQL log --- bacula/src/lib/message.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5