]> git.sur5r.net Git - bacula/bacula/commitdiff
Move start time after lock creation
authorKern Sibbald <kern@sibbald.com>
Fri, 21 Mar 2003 08:14:27 +0000 (08:14 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 21 Mar 2003 08:14:27 +0000 (08:14 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@389 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/job.c
bacula/src/version.h

index c12788da500d4800527067669a96aea58eaa0971..65c69de7687a7d16eefe8b918368275ec5840153 100644 (file)
@@ -170,11 +170,9 @@ void run_job(JCR *jcr)
  */
 static void *job_thread(void *arg)
 {
-   time_t now;
    JCR *jcr = (JCR *)arg;
 
    pthread_detach(pthread_self());
-   time(&now);
    sm_check(__FILE__, __LINE__, True);
 
    if (!acquire_resource_locks(jcr)) {
@@ -182,7 +180,7 @@ static void *job_thread(void *arg)
    }
 
    Dmsg0(200, "=====Start Job=========\n");
-   jcr->start_time = now;            /* set the real start time */
+   jcr->start_time = time(NULL);      /* set the real start time */
    Dmsg2(200, "jcr->JobStatus=%d %c\n", jcr->JobStatus, (char)jcr->JobStatus);
    if (job_cancelled(jcr)) {
       update_job_end_record(jcr);
index 3c915681a619a6c00a3430297f36b2f9f32ded37..4d5dc66cfc96a1e3acf799afad11b143f2b93b57 100644 (file)
@@ -1,8 +1,8 @@
 /* */
 #define VERSION "1.30"
 #define VSTRING "1"
-#define BDATE   "20 March 2003"
-#define LSMDATE "20Mar03"
+#define BDATE   "21 March 2003"
+#define LSMDATE "21Mar03"
 
 /* Debug flags */
 #define DEBUG 1