mirror of
https://github.com/rclone/rclone.git
synced 2024-11-30 12:25:29 +01:00
cache: fix default setting for warmup_age
This commit is contained in:
parent
f80f7a0509
commit
f0ed384786
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -269,7 +269,7 @@ func NewFs(name, rpath string) (fs.Fs, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "failed to understand duration", chunkAge)
|
return nil, errors.Wrapf(err, "failed to understand duration", chunkAge)
|
||||||
}
|
}
|
||||||
metaAge := fs.ConfigFileGet(name, "warmup_age", DefCacheChunkAge)
|
metaAge := fs.ConfigFileGet(name, "warmup_age", DefCacheMetaAge)
|
||||||
if *cacheMetaAge != DefCacheMetaAge {
|
if *cacheMetaAge != DefCacheMetaAge {
|
||||||
metaAge = *cacheMetaAge
|
metaAge = *cacheMetaAge
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user