CppND-System-Monitor/src/linux_parser.cpp
long LinuxParser::IdleJiffies() { 
  long total = 0;
  vector<string> cpuUtilization = LinuxParser::CpuUtilization();
  for(int i = kIdle_; i <= kIOwait_; i++) {
    total += stol(cpuUtilization[i]);
  }
  return total; 
}
// Read and return the number of idle jiffies for the system
Read and return the number of idle jiffies for the system
Read and return the number of idle jiffies for the system
long LinuxParser::IdleJiffies() { 
  long total = 0;
  vector<string> cpuUtilization = LinuxParser::CpuUtilization();
  for(int i = kIdle_; i <= kIOwait_; i++) {
    total += stol(cpuUtilization[i]);
  }
  return total; 
}
long LinuxParser :: IdleJiffies ( ) { long total = 0 ; vector < string > cpuUtilization = LinuxParser :: CpuUtilization ( ) ; for ( int i = kIdle_ ; i <= kIOwait_ ; i ++ ) { total += stol ( cpuUtilization [ i ] ) ; } return total ; }
Read and return the number of idle jiffies for the system
Read and return the number of idle jiffies for the system