]> git.sur5r.net Git - bacula/bacula/commitdiff
Correct despool time calculation.
authorKern Sibbald <kern@sibbald.com>
Fri, 4 Aug 2006 08:13:41 +0000 (08:13 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 4 Aug 2006 08:13:41 +0000 (08:13 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3235 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/spool.c
bacula/technotes-1.39

index 25f8a8a9def904d973518dffaefed7d2783c7391..f64d0c0930a5419b7faa5d27a13468d067544d0a 100644 (file)
@@ -248,7 +248,7 @@ static bool despool_data(DCR *dcr, bool commit)
    lseek(rdcr->spool_fd, 0, SEEK_SET); /* rewind */
 
    /* Add run time, to get current wait time */
-   time_t despool_start = time(NULL) + jcr->run_time;
+   time_t despool_start = time(NULL) - jcr->run_time;
 
    for ( ; ok; ) {
       if (job_canceled(jcr)) {
index 69103148e5f9c980125699b6a06f9335e4b77a98..90f8616c53a9c63fbc9da1ee52c36de430cb7d5f 100644 (file)
@@ -1,6 +1,8 @@
               Technical notes on version 1.39  
 
 General:
+04Aug06
+kes  Correct despool time calculation.
 03Aug06
 kes  Remove previous changes to compat.cpp as they create problems.
 kes  Use old style MD5 for FileSets to avoid Full saves on every Job.