diff options
| author | chrislu <chris.lu@gmail.com> | 2024-08-08 23:16:38 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-08-08 23:16:38 -0700 |
| commit | e825dd74965b4130373dbb213113b9ba557453aa (patch) | |
| tree | 2ac304534f5d0a5ce8d29973810e22d4fb86405d /weed/shell/command_remote_uncache.go | |
| parent | e069009f09b6ff73cf3c8359a10a73372c530c59 (diff) | |
| download | seaweedfs-e825dd74965b4130373dbb213113b9ba557453aa.tar.xz seaweedfs-e825dd74965b4130373dbb213113b9ba557453aa.zip | |
fix opposite logic
fix https://github.com/seaweedfs/seaweedfs/issues/5871
Diffstat (limited to 'weed/shell/command_remote_uncache.go')
| -rw-r--r-- | weed/shell/command_remote_uncache.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go index f5ec8934c..25e51ff74 100644 --- a/weed/shell/command_remote_uncache.go +++ b/weed/shell/command_remote_uncache.go @@ -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 } } |
