From 6f4ae8f58df667131fbb17aa333263a53a38b863 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Sun, 6 Aug 2023 10:55:04 +0100 Subject: [bugfix] update cache library with nil ptr fix (#2070) Signed-off-by: kim --- internal/cache/size.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/cache/size.go') 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() + -- cgit v1.2.3