增加弹幕缓存大小统计
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user