diff options
Diffstat (limited to 'internal/cache/size.go')
-rw-r--r-- | internal/cache/size.go | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go index 758d191be..e205bf023 100644 --- a/internal/cache/size.go +++ b/internal/cache/size.go @@ -201,6 +201,8 @@ func totalOfRatios() float64 { config.GetCachePollVoteMemRatio() + config.GetCacheReportMemRatio() + config.GetCacheStatusMemRatio() + + config.GetCacheStatusBookmarkMemRatio() + + config.GetCacheStatusBookmarkIDsMemRatio() + config.GetCacheStatusFaveMemRatio() + config.GetCacheStatusFaveIDsMemRatio() + config.GetCacheTagMemRatio() + @@ -566,7 +568,7 @@ func sizeofReport() uintptr { func sizeofStatus() uintptr { return uintptr(size.Of(>smodel.Status{ - ID: exampleURI, + ID: exampleID, URI: exampleURI, URL: exampleURI, Content: exampleText, @@ -599,6 +601,20 @@ func sizeofStatus() uintptr { })) } +func sizeofStatusBookmark() uintptr { + return uintptr(size.Of(>smodel.StatusBookmark{ + ID: exampleID, + AccountID: exampleID, + Account: nil, + TargetAccountID: exampleID, + TargetAccount: nil, + StatusID: exampleID, + Status: nil, + CreatedAt: exampleTime, + UpdatedAt: exampleTime, + })) +} + func sizeofStatusFave() uintptr { return uintptr(size.Of(>smodel.StatusFave{ ID: exampleID, |