Skip to content
Snippets Groups Projects
Unverified Commit ff94f0a9 authored by Miezhiko's avatar Miezhiko
Browse files

correct getCurrentRSS: don't use page size, convert to bytes


Signed-off-by: default avatarMiezhiko <Miezhiko@gmail.com>
parent 1cdc15c2
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ U64 LLMemory::getCurrentRSS()
// ru_maxrss (since Linux 2.6.32)
// This is the maximum resident set size used (in kilobytes).
return usage.ru_maxrss * sysconf(_SC_PAGESIZE);
return usage.ru_maxrss * 1024;
}
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment