From 17d2c47ec62f0bdea043cc6d0e09ac3c39a58ea1 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 24 May 2021 19:38:42 -0500 Subject: add cachedRawLeaderboards size to debug --- src/hypixelCached.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/hypixelCached.ts') diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 1f6b7f2..47cf088 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -9,6 +9,7 @@ import { CleanPlayer } from './cleaners/player' import { isUuid, undashUuid } from './util' import { CleanProfile, CleanFullProfile, CleanBasicProfile } from './cleaners/skyblock/profile' import { debug } from '.' +import { cachedRawLeaderboards } from './database' // cache usernames for 4 hours /** uuid: username */ @@ -378,6 +379,7 @@ setInterval(() => { console.log('basicPlayerCache', basicPlayerCache.getStats()) console.log('usernameCache', usernameCache.getStats()) console.log('profileCache', profileCache.getStats()) + console.log('cachedRawLeaderboards size', cachedRawLeaderboards.size) console.log( Math.floor((process.memoryUsage().heapUsed / 1024 / 1024) * 10) / 10 + 'mb') -- cgit