summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 17:24:53 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 17:24:53 +0100
commitc52a46a5e3915fab58ad4c28086b19a1cbcf5755 (patch)
treef1fd5c77ebf7ccb130700a97fe7c9c8c02d411b5 /src/Root.cpp
parentMerge branch 'master' into cmake-fixes (diff)
parentMerge branch 'FishingHook' (diff)
downloadcuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar
cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.gz
cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.bz2
cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.lz
cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.xz
cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.tar.zst
cuberite-c52a46a5e3915fab58ad4c28086b19a1cbcf5755.zip
Diffstat (limited to 'src/Root.cpp')
-rw-r--r--src/Root.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index 16a521698..fa1fdb37a 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -701,9 +701,9 @@ int cRoot::GetPhysicalRAMUsage(void)
{
AString Line;
std::getline(StatFile, Line);
- if (strncmp(Line.c_str(), "VmRSS:", 7) == 0)
+ if (strncmp(Line.c_str(), "VmRSS:", 6) == 0)
{
- int res = atoi(Line.c_str() + 8);
+ int res = atoi(Line.c_str() + 7);
return (res == 0) ? -1 : res; // If parsing failed, return -1
}
}