mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #119 from JakobR/fix
Fix off-by-one error causing too many snapshots under certain conditions
This commit is contained in:
commit
f16eff97fc
2
sanoid
2
sanoid
|
|
@ -318,7 +318,7 @@ sub take_snapshots {
|
|||
# reconstruct our human-formatted most recent preferred snapshot time into an epoch time, to compare with the epoch of our most recent snapshot
|
||||
my $maxage = time()-$lastpreferred;
|
||||
|
||||
if ( $newestage >= $maxage ) {
|
||||
if ( $newestage > $maxage ) {
|
||||
# update to most current possible datestamp
|
||||
%datestamp = get_date();
|
||||
# print "we should have had a $type snapshot of $path $maxage seconds ago; most recent is $newestage seconds old.\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue