]> git.sur5r.net Git - bacula/bacula/commitdiff
Correct tests for MaxFullInterval as reported by
authorKern Sibbald <kern@sibbald.com>
Wed, 10 Sep 2008 09:33:09 +0000 (09:33 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 10 Sep 2008 09:33:09 +0000 (09:33 +0000)
     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
bacula/technotes-2.5

index 2f1d3bd79cf72337fb633711025eca60d7bcc825..893835363eaf9e71580378c7ba841466db351cd1 100644 (file)
@@ -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);
 
index 4829148bcfafa01835528bfde8386dc50857b043..f33918ea77cd4a81a88dba86ba535a1ed0af8cc2 100644 (file)
@@ -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.