[Zetaback-devel] [zetaback commit] r159 - branches/classes

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Thu Nov 12 14:31:18 EST 2009


Author: mark
Date: 2009-11-12 14:31:18 -0500 (Thu, 12 Nov 2009)
New Revision: 159

Modified:
   branches/classes/zetaback.in
Log:
Use class values for backup intervals when checking violators

Modified: branches/classes/zetaback.in
===================================================================
--- branches/classes/zetaback.in	2009-11-12 19:31:12 UTC (rev 158)
+++ branches/classes/zetaback.in	2009-11-12 19:31:18 UTC (rev 159)
@@ -1176,8 +1176,9 @@
 
       # Quick short-circuit in the case of retention violation checks
       if($SUMMARY_VIOLATORS) {
-        if(time() > $info->{last_full} + config_get($host, 'full_interval') ||
-          time() > $info->{last_backup} + config_get($host, 'backup_interval')) {
+        if(time() > $info->{last_full} + config_get($host, 'full_interval',
+            $class) || time() > $info->{last_backup} + config_get(
+            $host, 'backup_interval', $class)) {
           print "$host:$disk\n";
           pretty_print_backup($info, $host, $info->{last_full});
           # Only print the last backup if it isn't the same as the last full



More information about the Zetaback-devel mailing list