src/linux_parser.cpp
// 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() { 
  auto jiffies = CpuUtilization();
  auto active = stol(jiffies[CPUStates::kUser_]) + stol(jiffies[CPUStates::kNice_]) +
                stol(jiffies[CPUStates::kSystem_]) + stol(jiffies[CPUStates::kIRQ_]) +
                stol(jiffies[CPUStates::kSoftIRQ_]) + stol(jiffies[CPUStates::kSteal_]);
  return active;
}
long LinuxParser :: ActiveJiffies ( ) { auto jiffies = CpuUtilization ( ) ; auto active = stol ( jiffies [ CPUStates :: kUser_ ] ) + stol ( jiffies [ CPUStates :: kNice_ ] ) + stol ( jiffies [ CPUStates :: kSystem_ ] ) + stol ( jiffies [ CPUStates :: kIRQ_ ] ) + stol ( jiffies [ CPUStates :: kSoftIRQ_ ] ) + stol ( jiffies [ CPUStates :: kSteal_ ] ) ; return active ; }
Read and return the number of active jiffies for the system
Read and return the number of active jiffies for the system