diff options
| author | ruki <[email protected]> | 2022-07-27 23:02:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-27 23:02:24 +0800 |
| commit | 5d2d67edb42b811fa657598222e4972bb94fae7b (patch) | |
| tree | a2d6b4126d969cafb975836c7eb28b0f5b05ee4a /core/src | |
| parent | bbf97386cc97ce835b09462e46b0d097aedb92fc (diff) | |
improve comments
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/os/meminfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/os/meminfo.c b/core/src/xmake/os/meminfo.c index 96e723790..a9a1d9719 100644 --- a/core/src/xmake/os/meminfo.c +++ b/core/src/xmake/os/meminfo.c @@ -91,19 +91,19 @@ tb_int_t xm_os_meminfo(lua_State* lua) // init table lua_newtable(lua); - // get the pagesize + // get the pagesize (bytes) tb_int_t pagesize = (tb_int_t)tb_page_size(); lua_pushstring(lua, "pagesize"); lua_pushinteger(lua, pagesize); lua_settable(lua, -3); - // get the total memory size + // get the total memory size (MB) tb_int_t physmem = xm_os_meminfo_physmem(); lua_pushstring(lua, "physmem"); lua_pushinteger(lua, physmem); lua_settable(lua, -3); - // get the vm memory info + // get the vm memory size (MB) tb_int_t vm_availsize = 0; tb_int_t vm_totalsize = 0; if (xm_os_meminfo_vmstats(&vm_totalsize, &vm_availsize)) |
