]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Address review comments 5726/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 4 Nov 2025 11:38:10 +0000 (11:38 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 4 Nov 2025 11:38:10 +0000 (11:38 +0000)
src/lua/lua_util.c

index 14d95a20f1c005b1b88ad439ca112317d7a6f32f..931e111a6a4473cc19a507355de91534a2072a83 100644 (file)
@@ -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__)