From 5a6750e1cdea8986c8cd3d5de61c37f9225813d9 Mon Sep 17 00:00:00 2001 From: Anagh Kumar Baranwal Date: Tue, 4 Sep 2018 16:55:16 +0530 Subject: [PATCH] cache: documentation fix for cache-chunk-total-size - Fixes #2519 Signed-off-by: Anagh Kumar Baranwal --- CONTRIBUTING.md | 2 +- backend/cache/cache.go | 2 +- docs/content/cache.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a1acf9c45..4b18dd46e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,7 +71,7 @@ Make sure you When you are done with that - git push origin my-new-feature + git push origin my-new-feature Go to the Github website and click [Create pull request](https://help.github.com/articles/creating-a-pull-request/). diff --git a/backend/cache/cache.go b/backend/cache/cache.go index 43679c3aa..1ae3fefe0 100644 --- a/backend/cache/cache.go +++ b/backend/cache/cache.go @@ -250,7 +250,7 @@ func NewFs(name, rootPath string, m configmap.Mapper) (fs.Fs, error) { return nil, err } if opt.ChunkTotalSize < opt.ChunkSize*fs.SizeSuffix(opt.TotalWorkers) { - return nil, errors.Errorf("don't set cache-total-chunk-size(%v) less than cache-chunk-size(%v) * cache-workers(%v)", + return nil, errors.Errorf("don't set cache-chunk-total-size(%v) less than cache-chunk-size(%v) * cache-workers(%v)", opt.ChunkTotalSize, opt.ChunkSize, opt.TotalWorkers) } diff --git a/docs/content/cache.md b/docs/content/cache.md index 821a2ffd4..2696e10dc 100644 --- a/docs/content/cache.md +++ b/docs/content/cache.md @@ -293,7 +293,7 @@ connections. If the chunk size is changed, any downloaded chunks will be invalid **Default**: 5M -#### --cache-total-chunk-size=SIZE #### +#### --cache-chunk-total-size=SIZE #### The total size that the chunks can take up on the local disk. If `cache` exceeds this value then it will start to the delete the oldest chunks until @@ -304,7 +304,7 @@ it goes under this value. #### --cache-chunk-clean-interval=DURATION #### How often should `cache` perform cleanups of the chunk storage. The default value -should be ok for most people. If you find that `cache` goes over `cache-total-chunk-size` +should be ok for most people. If you find that `cache` goes over `cache-chunk-total-size` too often then try to lower this value to force it to perform cleanups more often. **Default**: 1m