Commit 40d405f318
Verified · cmc
Layout: unified · split
app/config.go +3 −1
| @@ -88,7 +88,9 @@ func ExecuteConfig() { | |||
| 88 | 88 | ||
| 89 | lifetimeParsed = duration * int64(num) | 89 | lifetimeParsed = duration * int64(num) |
| 90 | } | 90 | } |
| 91 | CFG.Cache.MaxSize *= 1024 ^ 2 | 91 | // max-size is documented in megabytes. This was 1024^2, which in Go is |
| 92 | // XOR (1026), not exponentiation — so the cap was ~1000x too small. | ||
| 93 | CFG.Cache.MaxSize *= 1024 * 1024 | ||
| 92 | go InitCacheSystem() | 94 | go InitCacheSystem() |
| 93 | } | 95 | } |
| 94 | 96 | ||