summaryrefslogtreecommitdiff
path: root/test/envparsing.sh
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-08-14 17:08:19 +0100
committerLibravatar GitHub <noreply@github.com>2023-08-14 17:08:19 +0100
commit815b5291e034864052771cd3561fea479027e00f (patch)
tree18e3d49c441fb15e1f05ea2611e9c5c96b0be86f /test/envparsing.sh
parent[fix] Update CSP header for blob images (upload preview) and dev livereload (... (diff)
downloadgotosocial-815b5291e034864052771cd3561fea479027e00f.tar.xz
[bugfix] fix inconsistent calculated cache sizes (#2115)v0.11.0
* use calculated exampleTime instead of `time.Now()` to ensure no locale data, retweak cache ratios * update envparsing test * update default cache memory to 100MiB * fix envparsing with latest cache target default --------- Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'test/envparsing.sh')
-rwxr-xr-xtest/envparsing.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/envparsing.sh b/test/envparsing.sh
index d9270e7f6..e03dc62f0 100755
--- a/test/envparsing.sh
+++ b/test/envparsing.sh
@@ -18,32 +18,32 @@ EXPECT=$(cat << "EOF"
"application-name": "gts",
"bind-address": "127.0.0.1",
"cache": {
- "account-mem-ratio": 18,
- "account-note-mem-ratio": 0.1,
+ "account-mem-ratio": 5,
+ "account-note-mem-ratio": 1,
"application-mem-ratio": 0.1,
"block-mem-ratio": 3,
"boost-of-ids-mem-ratio": 3,
"emoji-category-mem-ratio": 0.1,
"emoji-mem-ratio": 3,
"follow-ids-mem-ratio": 4,
- "follow-mem-ratio": 4,
+ "follow-mem-ratio": 2,
"follow-request-ids-mem-ratio": 2,
"follow-request-mem-ratio": 2,
"in-reply-to-ids-mem-ratio": 3,
"instance-mem-ratio": 1,
- "list-entry-mem-ratio": 3,
- "list-mem-ratio": 3,
+ "list-entry-mem-ratio": 2,
+ "list-mem-ratio": 1,
"marker-mem-ratio": 0.5,
"media-mem-ratio": 4,
- "memory-target": 209715200,
- "mention-mem-ratio": 5,
- "notification-mem-ratio": 5,
+ "memory-target": 104857600,
+ "mention-mem-ratio": 2,
+ "notification-mem-ratio": 2,
"report-mem-ratio": 1,
"status-fave-ids-mem-ratio": 3,
- "status-fave-mem-ratio": 5,
- "status-mem-ratio": 18,
- "tag-mem-ratio": 3,
- "tombstone-mem-ratio": 2,
+ "status-fave-mem-ratio": 2,
+ "status-mem-ratio": 5,
+ "tag-mem-ratio": 2,
+ "tombstone-mem-ratio": 0.5,
"user-mem-ratio": 0.25,
"visibility-mem-ratio": 2,
"webfinger-mem-ratio": 0.1