From: Kern Sibbald Date: Wed, 10 Sep 2008 09:33:09 +0000 (+0000) Subject: Correct tests for MaxFullInterval as reported by X-Git-Tag: Release-3.0.0~995 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d8fe21878eb64cde49981f98eedb4643f275202;p=bacula%2Fbacula Correct tests for MaxFullInterval as reported by Ulrich Leodolter. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7581 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/fd_cmds.c b/bacula/src/dird/fd_cmds.c index 2f1d3bd79c..893835363e 100644 --- a/bacula/src/dird/fd_cmds.c +++ b/bacula/src/dird/fd_cmds.c @@ -165,7 +165,7 @@ void get_level_since_time(JCR *jcr, char *since, int since_len) bool do_full = false; bool do_diff = false; time_t now; - utime_t full_time; + utime_t last_full_time; utime_t diff_time; since[0] = 0; @@ -202,8 +202,8 @@ void get_level_since_time(JCR *jcr, char *since, int since_len) } if (have_full && jcr->job->MaxFullInterval > 0 && db_find_last_job_start_time(jcr, jcr->db, &jcr->jr, &stime, L_FULL)) { - full_time = str_to_utime(stime); - do_full = ((now - full_time) <= jcr->job->MaxFullInterval); + last_full_time = str_to_utime(stime); + do_full = ((now - last_full_time) >= jcr->job->MaxFullInterval); } free_pool_memory(stime); diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 4829148bcf..f33918ea77 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -62,6 +62,8 @@ remove reader/writer in FOPTS???? General: 09Sep08 +kes Correct tests for MaxFullInterval as reported by + Ulrich Leodolter. kes Enable Win32 plugin load code in lib. kes Make Verify code that computes disk checksums use the same algorithm as backup when dealing with sparse files.