warn if unknown interval type is used

This commit is contained in:
Christoph Klaffl 2018-12-04 21:38:15 +01:00
parent 9267d20a8c
commit a0b983ee6e
No known key found for this signature in database
GPG Key ID: FC1C525C2A47CC28
1 changed files with 1 additions and 1 deletions

2
sanoid
View File

@ -471,7 +471,7 @@ sub take_snapshots {
$lastpreferred = timelocal(@preferredtime);
if ($lastpreferred > time()) { $lastpreferred -= 60*60*24*31*365.25; } # preferred time is later this year - so look at last year
} else {
# unknown type
warn "WARN: unknown interval type $type in config!";
next;
}