1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-09 16:52:40 -05:00

Use uv_get_free_memory.

This commit is contained in:
XMRig
2019-11-29 13:12:36 +07:00
parent 64fb4f265b
commit c529770d38
3 changed files with 7 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ static rapidjson::Value getResources(rapidjson::Document &doc)
Value memory(kObjectType);
Value load_average(kArrayType);
memory.AddMember("free", uv_get_free_memory(), allocator);
memory.AddMember("total", uv_get_total_memory(), allocator);
memory.AddMember("resident_set_memory", static_cast<uint64_t>(rss), allocator);