From 28d740905cb9118b72dcdee5d573a5500c30466b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 10 Sep 2008 09:33:09 +0000 Subject: [PATCH] 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 --- bacula/src/dird/fd_cmds.c | 6 +++--- bacula/technotes-2.5 | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) 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. -- 2.39.5