mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-19 04:24:28 +02:00
fix opposite logic
fix https://github.com/seaweedfs/seaweedfs/issues/5871
This commit is contained in:
1 parent
e069009f09
commit
e825dd7496
1 file changed
+2
-2
@@ -165,12 +165,12 @@ func (ff *FileFilter) matches(entry *filer_pb.Entry) bool {
|
||||
}
|
||||
}
|
||||
if *ff.minAge != -1 {
|
||||
if entry.Attributes.Crtime + *ff.minAge < time.Now().Unix() {
|
||||
if entry.Attributes.Crtime + *ff.minAge > time.Now().Unix() {
|
||||
return false
|
||||
}
|
||||
}
|
||||
if *ff.maxAge != -1 {
|
||||
if entry.Attributes.Crtime + *ff.maxAge > time.Now().Unix() {
|
||||
if entry.Attributes.Crtime + *ff.maxAge < time.Now().Unix() {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user