]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/spool.c
Apply patch from Richard Mortimer to ensure that the number
[bacula/bacula] / bacula / src / stored / spool.c
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)) {