diff options
Diffstat (limited to 'src/os/mem.c')
-rw-r--r-- | src/os/mem.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/os/mem.c b/src/os/mem.c index b4335fd179..4eef84bfbe 100644 --- a/src/os/mem.c +++ b/src/os/mem.c @@ -1,13 +1,10 @@ -// os.c -- OS-level calls to query hardware, etc. +/// Functions for accessing system memory information. #include <uv.h> #include "os/os.h" -// Return total amount of memory available in Kbyte. -// Doesn't change when memory has been allocated. -long_u os_total_mem(int special) { - // We need to return memory in *Kbytes* but uv_get_total_memory() returns the - // number of bytes of total memory. +long_u os_get_total_mem_kib(void) { + // Convert bytes to KiB. return uv_get_total_memory() >> 10; } |