From: Kern Sibbald Date: Fri, 4 Aug 2006 08:13:41 +0000 (+0000) Subject: Correct despool time calculation. X-Git-Tag: Release-2.0.0~670 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=31a080efc291812b7345915880375c2b0e90ae83;p=bacula%2Fbacula Correct despool time calculation. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3235 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c index 25f8a8a9de..f64d0c0930 100644 --- a/bacula/src/stored/spool.c +++ b/bacula/src/stored/spool.c @@ -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)) { diff --git a/bacula/technotes-1.39 b/bacula/technotes-1.39 index 69103148e5..90f8616c53 100644 --- a/bacula/technotes-1.39 +++ b/bacula/technotes-1.39 @@ -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.