From ff94f0a97485c6e82e17bb5c405557a8bd32151f Mon Sep 17 00:00:00 2001
From: Miezhiko <Miezhiko@gmail.com>
Date: Fri, 27 Oct 2023 16:03:12 +0400
Subject: [PATCH] correct getCurrentRSS: don't use page size, convert to bytes

Signed-off-by: Miezhiko <Miezhiko@gmail.com>
---
 indra/llcommon/llmemory.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp
index f2b34d537a6..330c9e4d9dc 100644
--- a/indra/llcommon/llmemory.cpp
+++ b/indra/llcommon/llmemory.cpp
@@ -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
-- 
GitLab