cache: fix default setting for warmup_age

This commit is contained in:
Nick Craig-Wood 2017-11-20 14:39:12 +00:00
parent f80f7a0509
commit f0ed384786

2
cache/cache.go vendored
View File

@ -269,7 +269,7 @@ func NewFs(name, rpath string) (fs.Fs, error) {
if err != nil {
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 {
metaAge = *cacheMetaAge
}