mirror of https://github.com/jimsalterjrs/sanoid
remove redundant loop
This commit is contained in:
parent
f8e0e006ab
commit
c35c953e54
4
sanoid
4
sanoid
|
|
@ -380,9 +380,6 @@ sub take_snapshots {
|
|||
my @types = ('yearly','monthly','weekly','daily','hourly','frequently');
|
||||
|
||||
foreach my $type (@types) {
|
||||
|
||||
foreach my $_type (keys %{ $config{$section} }){
|
||||
unless ($type eq $_type) { next; }
|
||||
if ($config{$section}{$type} > 0) {
|
||||
|
||||
my $newestage; # in seconds
|
||||
|
|
@ -509,7 +506,6 @@ sub take_snapshots {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( (scalar(@newsnaps)) > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue