src/linux_parser.cpp
float LinuxParser::MemoryUtilization() {
  float tot_mem = getFileValueByKey<float>(kProcDirectory + kMeminfoFilename,
                                           filterMemTotalString);
  float avail_mem = getFileValueByKey<float>(kProcDirectory + kMeminfoFilename,
                                             filterMemAvailableString);
  return (tot_mem - avail_mem) / tot_mem;
}
// TODO: Read and return the system memory utilization
Read and return the system memory utilization
Read and return the system memory utilization
float LinuxParser::MemoryUtilization() {
  float tot_mem = getFileValueByKey<float>(kProcDirectory + kMeminfoFilename,
                                           filterMemTotalString);
  float avail_mem = getFileValueByKey<float>(kProcDirectory + kMeminfoFilename,
                                             filterMemAvailableString);
  return (tot_mem - avail_mem) / tot_mem;
}
float LinuxParser :: MemoryUtilization ( ) { float tot_mem = getFileValueByKey < float > ( kProcDirectory + kMeminfoFilename , filterMemTotalString ) ; float avail_mem = getFileValueByKey < float > ( kProcDirectory + kMeminfoFilename , filterMemAvailableString ) ; return ( tot_mem - avail_mem ) / tot_mem ; }
TODO: Read and return the system memory utilization
TODO : Read and return the system memory utilization