Skip to content
Snippets Groups Projects
Commit 44c70ca4 authored by David Bauer's avatar David Bauer
Browse files

gluon-respondd: expose MemAvailable

parent 6ebe2ccd
No related branches found
Tags v2018.2.3
No related merge requests found
......@@ -197,6 +197,8 @@ static struct json_object * get_memory(void) {
json_object_object_add(ret, "total", json_object_new_int(value));
else if (!strcmp(label, "MemFree"))
json_object_object_add(ret, "free", json_object_new_int(value));
else if (!strcmp(label, "MemAvailable"))
json_object_object_add(ret, "available", json_object_new_int(value));
else if (!strcmp(label, "Buffers"))
json_object_object_add(ret, "buffers", json_object_new_int(value));
else if (!strcmp(label, "Cached"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment