1 | // This is an open source non-commercial project. Dear PVS-Studio, please check |
---|---|
2 | // it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com |
3 | |
4 | /// Functions for accessing system memory information. |
5 | |
6 | #include <uv.h> |
7 | |
8 | #include "nvim/os/os.h" |
9 | |
10 | /// Get the total system physical memory in KiB. |
11 | uint64_t os_get_total_mem_kib(void) |
12 | { |
13 | // Convert bytes to KiB. |
14 | return uv_get_total_memory() / 1024; |
15 | } |
16 |