]> git.sur5r.net Git - bacula/bacula/commitdiff
Ensure that timestamp put in SQL log
authorKern Sibbald <kern@sibbald.com>
Wed, 19 Aug 2009 10:54:23 +0000 (12:54 +0200)
committerKern Sibbald <kern@sibbald.com>
Wed, 19 Aug 2009 10:54:23 +0000 (12:54 +0200)
bacula/src/lib/message.c

index b8bbff30e178658d89da4687727be7cf22d49782..7acf7447a35e2b2c2f46b664f7a3f0c1bddf4031 100644 (file)
@@ -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);