Subversion Repositories sysadmin_scripts

Rev

Rev 101 | Rev 103 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 101 Rev 102
Line 196... Line 196...
196
         $datasets->{$thisDataset}->{'retention'}, 
196
         $datasets->{$thisDataset}->{'retention'}, 
197
         $datasets->{$thisDataset}->{'recursive'}, 
197
         $datasets->{$thisDataset}->{'recursive'}, 
198
         $datasets->{$thisDataset}->{'snapshots'}, 
198
         $datasets->{$thisDataset}->{'snapshots'}, 
199
         $now )
199
         $now )
200
         );
200
         );
201
      if ( $datasets->{$thisDataset}->{'lastSnap'} + $datasets->{$thisDataset}->{'frequency'} + $slop > $now ) {
201
      if ( $datasets->{$thisDataset}->{'lastSnap'} + $datasets->{$thisDataset}->{'frequency'} - $slop < $now ) {
202
         push @toAdd, &makeSnapshot( $thisDataset, $datasets->{$thisDataset}->{'recursive'}, $snapshotName )
202
         push @toAdd, &makeSnapshot( $thisDataset, $datasets->{$thisDataset}->{'recursive'}, $snapshotName )
203
      }
203
      }
204
   }
204
   }
205
   return ( @toDelete, @toAdd );
205
   return ( @toDelete, @toAdd );
206
}   
206
}