MCPcopy Create free account
hub / github.com/3rdparty/libprocess / _mem_free_bytes

Method _mem_free_bytes

include/process/system.hpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152 Future<double> _mem_free_bytes()
153 {
154 Try<os::Memory> memory = os::memory();
155 if (memory.isSome()) {
156 return static_cast<double>(memory->free.bytes());
157 }
158 return Failure("Failed to get memory: " + memory.error());
159 }
160
161 // HTTP endpoints.
162 Future<http::Response> stats(const http::Request& request)

Callers

nothing calls this directly

Calls 1

FailureClass · 0.85

Tested by

no test coverage detected