Function Jet::Utilities::GetTotalMemory

Function Documentation

inline int Jet::Utilities::GetTotalMemory()

Returns the total amount of system memory as reported by /proc/meminfo.

Adapted from https://github.com/Russellislam08/RAMLogger/blob/master/readproc.h

Returns

Total amount of system memory (in kB). If an error occurs, -1 is returned.