oomd: switch system context parsing to use /proc/meminfo
Makes it easier in the next commits to unify on one way to read swap and memory info.
This commit is contained in:
@@ -15,3 +15,6 @@ int procfs_memory_get(uint64_t *ret_total, uint64_t *ret_used);
|
||||
static inline int procfs_memory_get_used(uint64_t *ret) {
|
||||
return procfs_memory_get(NULL, ret);
|
||||
}
|
||||
|
||||
/* This function destroys "word" (it'll be truncated to perform conversion) */
|
||||
int convert_meminfo_value_to_uint64_bytes(char *word, uint64_t *ret);
|
||||
|
||||
Reference in New Issue
Block a user