Changeset 77d7c3a4da0715ecef2f94e52f63ebeeb383abd1

Show
Ignore:
Timestamp:
11/12/09 19:31:18 (9 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1258054278 +0000
git-parent:

[68a67fce2d353395b86cec58f2bf0c071c22e99b]

git-author:
Mark Harrison <mark@omniti.com> 1258054278 +0000
Message:

Use class values for backup intervals when checking violators

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • zetaback.in

    r68a67fc r77d7c3a  
    11771177      # Quick short-circuit in the case of retention violation checks 
    11781178      if($SUMMARY_VIOLATORS) { 
    1179         if(time() > $info->{last_full} + config_get($host, 'full_interval') || 
    1180           time() > $info->{last_backup} + config_get($host, 'backup_interval')) { 
     1179        if(time() > $info->{last_full} + config_get($host, 'full_interval', 
     1180            $class) || time() > $info->{last_backup} + config_get( 
     1181            $host, 'backup_interval', $class)) { 
    11811182          print "$host:$disk\n"; 
    11821183          pretty_print_backup($info, $host, $info->{last_full});