- Node.js Version: current
- OS: any
- Scope (install, code, runtime, meta, other?):
- Module (and version) (if relevant): current
// src/node_os.cc:133
static void GetFreeMemory(const FunctionCallbackInfo<Value>& args) {
double amount = uv_get_free_memory();
if (amount < 0) // This
return;
args.GetReturnValue().Set(amount);
}
Is it possible to have amount < 0 ? Based on libuv codebase (at least on LINUX), the free mem (also total mem) is taken from /proc/meminfo, based on that, is it possible to have a negative amount?
Is it possible to have
amount < 0? Based on libuv codebase (at least on LINUX), the free mem (also total mem) is taken from/proc/meminfo, based on that, is it possible to have a negative amount?