]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/spool.c
Correct dvd code that breaks tape labeling
[bacula/bacula] / bacula / src / stored / spool.c
index e91967bef556738d0366609d5de839424372a208..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)) {
@@ -279,7 +279,7 @@ static bool despool_data(DCR *dcr, bool commit)
 
    Jmsg(dcr->jcr, M_INFO, 0, _("Despooling elapsed time = %02d:%02d:%02d, Transfer rate = %s bytes/second\n"),
          despool_elapsed / 3600, despool_elapsed % 3600 / 60, despool_elapsed % 60,
-         edit_uint64_with_commas(jcr->dcr->job_spool_size / despool_elapsed, ec1));
+         edit_uint64_with_suffix(jcr->dcr->job_spool_size / despool_elapsed, ec1));
 
    dcr->block = block;                /* reset block */