Merge pull request #269 from muff1nman/muff1nman-mon-ignore

Ignore snapshots types that are set to 0.
This commit is contained in:
Jim Salter 2018-12-04 15:30:24 -05:00 committed by GitHub
commit 2502349d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
sanoid
View File

@ -130,6 +130,7 @@ sub monitor_snapshots {
my @types = ('yearly','monthly','daily','hourly','frequently');
foreach my $type (@types) {
if ($config{$section}{$type} == 0) { next; }
my $smallerperiod = 0;
# we need to set the period length in seconds first