summaryrefslogtreecommitdiff
path: root/internal/cache
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-08-06 10:55:04 +0100
committerLibravatar GitHub <noreply@github.com>2023-08-06 11:55:04 +0200
commit6f4ae8f58df667131fbb17aa333263a53a38b863 (patch)
treefe2dfb9126d806824772170577dcd483209e8e69 /internal/cache
parent[docs] fix postgres create database command (#2071) (diff)
downloadgotosocial-6f4ae8f58df667131fbb17aa333263a53a38b863.tar.xz
[bugfix] update cache library with nil ptr fix (#2070)
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/cache')
-rw-r--r--internal/cache/size.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go
index 56524575b..ec7c554c0 100644
--- a/internal/cache/size.go
+++ b/internal/cache/size.go
@@ -157,12 +157,14 @@ func totalOfRatios() float64 {
config.GetCacheAccountNoteMemRatio() +
config.GetCacheBlockMemRatio() +
config.GetCacheBlockIDsMemRatio() +
+ config.GetCacheBoostOfIDsMemRatio() +
config.GetCacheEmojiMemRatio() +
config.GetCacheEmojiCategoryMemRatio() +
config.GetCacheFollowMemRatio() +
config.GetCacheFollowIDsMemRatio() +
config.GetCacheFollowRequestMemRatio() +
config.GetCacheFollowRequestIDsMemRatio() +
+ config.GetCacheInReplyToIDsMemRatio() +
config.GetCacheInstanceMemRatio() +
config.GetCacheListMemRatio() +
config.GetCacheListEntryMemRatio() +
@@ -173,6 +175,7 @@ func totalOfRatios() float64 {
config.GetCacheReportMemRatio() +
config.GetCacheStatusMemRatio() +
config.GetCacheStatusFaveMemRatio() +
+ config.GetCacheStatusFaveIDsMemRatio() +
config.GetCacheTagMemRatio() +
config.GetCacheTombstoneMemRatio() +
config.GetCacheUserMemRatio() +