summaryrefslogtreecommitdiff
path: root/src/resources/memorymanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/memorymanager.cpp')
-rw-r--r--src/resources/memorymanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/memorymanager.cpp b/src/resources/memorymanager.cpp
index 33d6f442e..5694d3858 100644
--- a/src/resources/memorymanager.cpp
+++ b/src/resources/memorymanager.cpp
@@ -83,7 +83,8 @@ void MemoryManager::printAllMemory(ChatTab *const tab A_DYECMD_UNUSED)
#ifdef DYECMD
if (resourceManager)
resourceManager->calcMemory(0);
-#else
+#else // DYECMD
+
int sz = 0;
if (resourceManager)
sz += resourceManager->calcMemory(0);
@@ -93,5 +94,5 @@ void MemoryManager::printAllMemory(ChatTab *const tab A_DYECMD_UNUSED)
tab->chatLog(strprintf(_("Calculated memory usage: %d"), sz),
ChatMsgType::BY_SERVER);
}
-#endif
+#endif // DYECMD
}