summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-24 22:45:11 +0200
committermadmaxoft <github@xoft.cz>2013-08-24 22:45:11 +0200
commitd55aaf818cffa292839ceec7ee2a6d3223c9f4d5 (patch)
tree517cba2f618c96923a4b8b5d5fba92e240fb43aa
parentSlight performance improvement in cWorld::FindClosestPlayer() (diff)
downloadcuberite-d55aaf818cffa292839ceec7ee2a6d3223c9f4d5.tar
cuberite-d55aaf818cffa292839ceec7ee2a6d3223c9f4d5.tar.gz
cuberite-d55aaf818cffa292839ceec7ee2a6d3223c9f4d5.tar.bz2
cuberite-d55aaf818cffa292839ceec7ee2a6d3223c9f4d5.tar.lz
cuberite-d55aaf818cffa292839ceec7ee2a6d3223c9f4d5.tar.xz
cuberite-d55aaf818cffa292839ceec7ee2a6d3223c9f4d5.tar.zst
cuberite-d55aaf818cffa292839ceec7ee2a6d3223c9f4d5.zip
-rw-r--r--source/LeakFinder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/LeakFinder.cpp b/source/LeakFinder.cpp
index 3242bba04..9af259e88 100644
--- a/source/LeakFinder.cpp
+++ b/source/LeakFinder.cpp
@@ -942,10 +942,10 @@ static int MyAllocHook(int nAllocType, void *pvData,
g_CurrentMemUsage += nSize ;
g_pCRTTable->Insert(lRequest, c, nSize);
- if (g_CurrentMemUsage > 1073741824) //This is 1 gb = 1024 * 1024* 1024.
+ if (g_CurrentMemUsage > 1536 * 1024* 1024)
{
printf("******************************************\n");
- printf("** Server reached 1 GiB memory usage, **\n");
+ printf("** Server reached 1.5 GiB memory usage, **\n");
printf("** something is probably wrong. **\n");
printf("** Writing memory dump into memdump.xml **\n");
printf("******************************************\n");