diff options
Diffstat (limited to 'app')
| -rwxr-xr-x | app/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/config.go b/app/config.go index 2d32d19..acd9b71 100755 --- a/app/config.go +++ b/app/config.go @@ -88,7 +88,9 @@ func ExecuteConfig() { lifetimeParsed = duration * int64(num) } - CFG.Cache.MaxSize *= 1024 ^ 2 + // max-size is documented in megabytes. This was 1024^2, which in Go is + // XOR (1026), not exponentiation — so the cap was ~1000x too small. + CFG.Cache.MaxSize *= 1024 * 1024 go InitCacheSystem() } |
