diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-29 20:47:16 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-29 20:47:16 -0700 |
| commit | 190b2fc27637017cdd075331fd04b8cb0e5879b7 (patch) | |
| tree | 93db54c4ad83af2b09eb7862380b8c634154e203 /weed/shell/command_remote_uncache.go | |
| parent | 8111ec13bd06e4a9142a87640986de8c41d4b75a (diff) | |
| parent | 20929f2a5753a04385be2378e698c8df762b3256 (diff) | |
| download | seaweedfs-190b2fc27637017cdd075331fd04b8cb0e5879b7.tar.xz seaweedfs-190b2fc27637017cdd075331fd04b8cb0e5879b7.zip | |
Merge branch 'master' into mq2origin/mq2
Diffstat (limited to 'weed/shell/command_remote_uncache.go')
| -rw-r--r-- | weed/shell/command_remote_uncache.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go index 25e51ff74..86d992ef1 100644 --- a/weed/shell/command_remote_uncache.go +++ b/weed/shell/command_remote_uncache.go @@ -41,6 +41,10 @@ func (c *commandRemoteUncache) Help() string { ` } +func (c *commandRemoteUncache) HasTag(CommandTag) bool { + return false +} + func (c *commandRemoteUncache) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { remoteUncacheCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError) @@ -165,12 +169,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 } } |
