Do not monitor snapshots types that are set to 0.

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
Andrew DeMaria 2018-09-10 22:14:05 -04:00
parent 22160deb8e
commit e7bd567acb
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
1 changed files with 1 additions and 0 deletions

1
sanoid
View File

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