src/linux_parser.cpp
long LinuxParser::ActiveJiffies() {
  vector<string> data = CpuUtilization();
  long active = stol(data[kUser_]) + stol(data[kNice_]) + stol(data[kSystem_]) + stol(data[kIRQ_]) +
            stol(data[kSoftIRQ_]) + stol(data[kSteal_]);
  return active;
}
// Done: Read and return the number of active jiffies for the system
Read and return the number of active jiffies for the system
Read and return the number of active jiffies for the system
long LinuxParser::ActiveJiffies() {
  vector<string> data = CpuUtilization();
  long active = stol(data[kUser_]) + stol(data[kNice_]) + stol(data[kSystem_]) + stol(data[kIRQ_]) +
            stol(data[kSoftIRQ_]) + stol(data[kSteal_]);
  return active;
}
long LinuxParser :: ActiveJiffies ( ) { vector < string > data = CpuUtilization ( ) ; long active = stol ( data [ kUser_ ] ) + stol ( data [ kNice_ ] ) + stol ( data [ kSystem_ ] ) + stol ( data [ kIRQ_ ] ) + stol ( data [ kSoftIRQ_ ] ) + stol ( data [ kSteal_ ] ) ; return active ; }
Done: Read and return the number of active jiffies for the system
Done : Read and return the number of active jiffies for the system