From 4f6d7c791f24349736965e100f745d04fa03077e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 4 Nov 2025 11:38:10 +0000 Subject: [PATCH] [Minor] Address review comments --- src/lua/lua_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 14d95a20f1..931e111a6a 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -2546,7 +2546,7 @@ lua_util_get_memory_usage(lua_State *L) lua_settable(L, -3); lua_pushstring(L, "vsize"); - lua_pushinteger(L, kp.p_vm_vsize); + lua_pushinteger(L, kp.p_vm_vsize * getpagesize()); lua_settable(L, -3); } #elif defined(__FreeBSD__) || defined(__OpenBSD__) -- 2.47.3