diff options
Diffstat (limited to 'src/resources/memorymanager.cpp')
-rw-r--r-- | src/resources/memorymanager.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/resources/memorymanager.cpp b/src/resources/memorymanager.cpp index 01e67eb1b..55d157c5f 100644 --- a/src/resources/memorymanager.cpp +++ b/src/resources/memorymanager.cpp @@ -80,14 +80,12 @@ void MemoryManager::printAllMemory(ChatTab *const tab A_DYECMD_UNUSED) { if (!logger) return; + #ifdef DYECMD - if (resourceManager) - resourceManager->calcMemory(0); + ResourceManager::calcMemory(0); #else // DYECMD - int sz = 0; - if (resourceManager) - sz += resourceManager->calcMemory(0); + int sz = ResourceManager::calcMemory(0); if (tab) { // TRANSLATORS: memory usage chat message |