增加弹幕缓存大小统计

This commit is contained in:
mtvpls
2026-04-19 00:44:59 +08:00
parent 73b78d0387
commit a43af13193
2 changed files with 34 additions and 6 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ export async function getDanmakuCacheStats(): Promise<{
if (cursor) {
const data = cursor.value as DanmakuCacheData;
total++;
totalSize += data.comments.length;
totalSize += new Blob([JSON.stringify(data)]).size;
if (data.timestamp < expireThreshold) {
expired++;