mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #269 from muff1nman/muff1nman-mon-ignore
Ignore snapshots types that are set to 0.
This commit is contained in:
commit
2502349d05
1
sanoid
1
sanoid
|
|
@ -130,6 +130,7 @@ sub monitor_snapshots {
|
||||||
|
|
||||||
my @types = ('yearly','monthly','daily','hourly','frequently');
|
my @types = ('yearly','monthly','daily','hourly','frequently');
|
||||||
foreach my $type (@types) {
|
foreach my $type (@types) {
|
||||||
|
if ($config{$section}{$type} == 0) { next; }
|
||||||
|
|
||||||
my $smallerperiod = 0;
|
my $smallerperiod = 0;
|
||||||
# we need to set the period length in seconds first
|
# we need to set the period length in seconds first
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue