Subversion Repositories sysadmin_scripts

Rev

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

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